vrevbin: vectorized revbin function

View source: R/doofa.R

vrevbinR 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);

doofa documentation built on June 22, 2024, 7:39 p.m.

Related to vrevbin in doofa...