as_binary | R Documentation |
as_binary
converts integers to their binary representation.
as_binary
does not work for integers which are larger than 32 bit.
as_binary(x, n = 32)
x |
Integer to convert into its binary from. |
n |
Number of digits/bits to return. Default is 32. |
Stuart K. Grange
## Not run:
# Vector with length of one
as_binary(5L)
# Sampled vector
as_binary(sample(1L:1000L, 1000))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.