Description Usage Arguments Value Author(s) Examples
A non-negative integer is represented as a binary number. The digits, 0 or 1, of this number are returned in a vector.
1 |
n |
a non-negative integers |
k |
number of digits to be returned. |
A vector of length k. The first element is the least significant digit.
A.I. McLeod
1 2 3 4 5 |
Loading required package: leaps
[1] 1 1 1 1 1 1
[1] 0 0 0 0 0 0 1
[1] 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[1] 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.