Description Usage Arguments Details Value Examples
dec2bin
function converts a decimal number to a binary number.
1 |
vec |
a numeric vector of positive values. |
npos |
an optional number of length of the generating binary number. |
This is a function to converting from decimal to binary number.
dec2bin
returns a matrix.
1 2 3 |
Loading required package: survival
[1] 87 42 97 50 76 40 88 38 29 32
64 32 16 8 4 2 1
87 1 0 1 0 1 1 1
42 0 1 0 1 0 1 0
97 1 1 0 0 0 0 1
50 0 1 1 0 0 1 0
76 1 0 0 1 1 0 0
40 0 1 0 1 0 0 0
88 1 0 1 1 0 0 0
38 0 1 0 0 1 1 0
29 0 0 1 1 1 0 1
32 0 1 0 0 0 0 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.