powered by
Fills up the binary number with zeros(0) or ones(1), to the size n in bit.
fillUpToBit(x, n, value=FALSE)
The binary number to fill up with zeros. (Any binary vector).
size in bit.
to fill up with FALSE(0) or fill up with TRUE(1).
binary number. A binary vector with the desired size.
No floating point supported.
fillUpToByte.
# NOT RUN { rdiversity:::fillUpToBit(as.binary(c(1,1), logic=TRUE), n=4) rdiversity:::fillUpToBit(as.binary(c(1,0,1), logic=TRUE), n=4, value=FALSE) # }
Run the code above in your browser using DataLab