intToNumeralSystem | R Documentation |
Convert Integers to Numeral System
intToNumeralSystem(x, base)
x |
vector of integers |
base |
base of the numeral system |
matrix with as many rows as there are elements in x
and as
many columns as digits that are required to represent the integers in
x
in the numeral system in base base
. The elements of
x
appear as row names whereas the powers of base
appear as
column names.
intToNumeralSystem(1:16, base = 2) # binary system
intToNumeralSystem(1:16, base = 10) # decimal system
intToNumeralSystem(1:16, base = 8) # octal system
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.