IntDecToBin {MiscMath} | R Documentation |
Binary Expansion of Positive Integers
Description
Convert positive integers to their corresponding binary representation.
Usage
IntDecToBin(x, m = 31)
Arguments
x |
an integer vector |
m |
a numeric constant specifying the number of binary digits to use in the output |
Value
a matrix containing the binary representations
Examples
x <- c(81, 57, 333)
IntDecToBin(as.integer(x))
[Package MiscMath version 1.1 Index]