Description Usage Arguments Value Functions
Convert a non-negative decimal integer to an arbitrary base with arbitrary symbols.
1 2 3 |
x |
Vector of non-negative integers to convert |
base |
Either a positive integer specifying the base number or
a character string of the symbols to use for the base. If |
drop_leading |
If |
width |
Minimum width of the strings, they will be padded with zeros to at least that length. |
lower |
If |
... |
Arguments passed to |
A character vector of the integers in the new base
dec2alpha
: Since LaTeX doesn't support numbers in command names,
encode numbers in base 26 with letters A-Z, or base 52 using both upper and
lowercase letters. Note that this means that A=0, B=1, ... .
An alternative is to use Roman numerals instead; see as.roman
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.