revbin {doofa} | R 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));
[Package doofa version 1.0 Index]