revbin: reverse of bin function i.e., returns which elements of a...

View source: R/doofa.R

revbinR Documentation

reverse of bin function i.e., returns which elements of a binary vector is 1

Description

reverse of bin function i.e., returns which elements of a binary vector is 1

Usage

revbin(x)

Arguments

x

a vector with 0 and 1s such that there is only 1

Value

a postive integer m

Examples

revbin(c(0,1,0,0));

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

Related to revbin in doofa...