binary {wle} | R Documentation |
Convert decimal base number to binary base.
binary(x, dim)
x |
a number in decibal base. |
dim |
the number of digits, if missing the right number of digits is evaluated. |
binary |
a vector representing the `x` number in binary base. |
dicotomy |
the same as `binary` but `TRUE` and `FALSE` instead of 1 and 0. |
the elements of `binary` and `dicotomy` are in reverse order.
Claudio Agostinelli
binary(2) binary(10,dim=5)