Make a bit flag from an integer

.makeFlag(x, len = NULL, rev = FALSE)

Arguments

x

integerish(1)
the integer for which to derive the binary representation (bit flags).

len

integerish(1)
the number of bit flags.

rev

logical(1)
whether or not to revert the direction of how the bit flag is returned.

Details

Wrapper around intToBits.