Make a binary value from an integer

.toBin(x, len = NULL, pad = TRUE, dec = FALSE)

Arguments

x

numeric(1)
the numeric value for which to derive the binary value.

len

integerish(1)
the number of bits used to capture the value.

pad

logical(1)
whether to pad the binary value with 0 values.

dec

logical(1)
whether to transform the decimal part to bits, or the integer part.

Details

Additional details...

Examples

# example code