vrevbin | R Documentation |
vectorized revbin function
vrevbin(x, m)
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 |
a vector of n positive integers
vrevbin(x=c(0,0,1,0,1,0), m = 3);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.