numeral | R Documentation |
The numeral
class extends the base numeric vectors with methods for
printing them using UTF digits from other numeral systems.
numeral(x = numeric(), system = c("en", "ar", "bn", "fa", "my"))
x |
A numeric vector. |
system |
Two-letter language code of the desired numeral system; see
details for a list of available systems. Default: |
The following numeral systems are currently supported:
"en"
: Western Arabic numerals (the default display in base R)
"ar"
: Eastern Arabic numerals
"bn"
: Bengali numerals
"fa"
: Persian numerals
"my"
: Burmese numerals
Vector of class numeral
.
# Eastern Arabic numerals
numeral(1:10, "ar")
# Persian numerals
numeral(1:10, "fa")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.