powered by
reverse of bin function i.e., returns which elements of a binary vector is 1
revbin(x)
a postive integer m
a vector with 0 and 1s such that there is only 1
revbin(c(0,1,0,0));
Run the code above in your browser using DataLab