vrevbin {doofa}R Documentation

vectorized revbin function

Description

vectorized revbin function

Usage

vrevbin(x, m)

Arguments

x

a binary vector of length nm, such that each length of m has only one 1 and rest as 0

m

a positive integer

Value

a vector of n positive integers

Examples

vrevbin(x=c(0,0,1,0,1,0), m = 3);

[Package doofa version 1.0 Index]