| base_digits | R Documentation |
base_digits provides numeral symbols (digits)
for notational place-value systems with arbitrary bases
(as a named character vector).
base_digits
An object of class character of length 62.
Note that the elements (digits) are character symbols
(i.e., numeral digits "0"-"9", "A"-"F", etc.),
whereas their names correspond to their
numeric values (from 0 to length(base_digits) - 1).
Thus, the maximum base value in conversions by
base2dec or dec2base
is length(base_digits).
base2dec converts numerals in some base into decimal numbers;
dec2base converts decimal numbers into numerals in another base;
as.roman converts integers into Roman numerals.
Other numeric functions:
base2dec(),
dec2base(),
is_equal(),
is_wholenumber(),
num_as_char(),
num_as_ordinal(),
num_equal()
Other utility functions:
base2dec(),
dec2base(),
is_equal(),
is_vect(),
is_wholenumber(),
num_as_char(),
num_as_ordinal(),
num_equal()
base_digits # named character vector, zero-indexed names
length(base_digits) # 62 (maximum base value)
base_digits[10] # 10. element ("9" with name "9")
base_digits["10"] # named element "10" ("A" with name "10")
base_digits[["10"]] # element named "10" ("A")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.