number2binary | R Documentation |
Convert number to bit vector
number2binary(number, noBits)
number |
a number to convert to a binary vector |
noBits |
the final length of the binary vector. If missing, return the full (native) bit vector |
a vector of 0's and 1's
number2binary(1) number2binary(2) number2binary(3) number2binary(4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.