d2w | R Documentation |
Convert single digits to words
d2w(x, lang = "en", neutrum = FALSE, everything = FALSE)
x |
data. Handle vectors, data.frames and lists |
lang |
language. Danish (da) and English (en), Default is "en" |
neutrum |
for numbers depending on counted word |
everything |
flag to also split numbers >9 to single digits |
returns characters in same format as input
d2w(c(2:8, 21))
d2w(data.frame(2:7, 3:8, 1), lang = "da", neutrum = TRUE)
## If everything=T, also larger numbers are reduced.
## Elements in the list are same length as input
d2w(list(2:8, c(2, 6, 4, 23), 2), everything = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.