itostr | R Documentation |
This is the counterpart of strtoi
.
For a base greater than ‘10’, letters ‘a’ to ‘z’
are used to represent ‘10’ to ‘35’.
itostr(x, base = 10L)
x |
[ |
base |
[ |
character(length(x))
.
# binary representation of the first 10 natural numbers itostr(1:10, 2) # base36 encoding of a large number itostr(1e7, 36)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.