numWord | R Documentation |
Convert numbers to English words
numWord(x, cap = FALSE, hyphen = TRUE, and = FALSE, round = FALSE)
x |
integer vector |
cap |
logical, if TRUE capitalise first letter of word. |
hyphen |
logical, if TRUE insert |
and |
logical, if TRUE insert |
round |
logical, if TRUE decimals are rounded to integers,
using |
character vector.
numWord(0, cap = TRUE)
numWord(0:121, and = TRUE)
numWord(1e6)
numWord(1e11+12345678)
numWord(-987654321)
numWord(1e15-1)
numWord(c(1,2,3,4.55), round = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.