Description Usage Arguments Value Author(s) Examples
This can be helpful when writing reports with knitr/rmarkdown if
we want to print numbers as English words in the output. The function
n2w()
is an alias of numbers_to_words()
.
1 2 3 
x 
A numeric vector. Values should be integers. The absolute values
should be less than 
cap 
Whether to capitalize the first letter of the word. This can be
useful when the word is at the beginning of a sentence. Default is

hyphen 
Whether to insert hyphen () when the number is between 21 and 99 (except 30, 40, etc.). 
and 
Whether to insert 
A character vector.
Daijiang Li
1 2 3 4 5 6 7 
Attaching package: 'xfun'
The following object is masked from 'package:base':
attr
[1] "Zero"
[1] "zero" "one"
[3] "two" "three"
[5] "four" "five"
[7] "six" "seven"
[9] "eight" "nine"
[11] "ten" "eleven"
[13] "twelve" "thirteen"
[15] "fourteen" "fifteen"
[17] "sixteen" "seventeen"
[19] "eighteen" "nineteen"
[21] "twenty" "twentyone"
[23] "twentytwo" "twentythree"
[25] "twentyfour" "twentyfive"
[27] "twentysix" "twentyseven"
[29] "twentyeight" "twentynine"
[31] "thirty" "thirtyone"
[33] "thirtytwo" "thirtythree"
[35] "thirtyfour" "thirtyfive"
[37] "thirtysix" "thirtyseven"
[39] "thirtyeight" "thirtynine"
[41] "forty" "fortyone"
[43] "fortytwo" "fortythree"
[45] "fortyfour" "fortyfive"
[47] "fortysix" "fortyseven"
[49] "fortyeight" "fortynine"
[51] "fifty" "fiftyone"
[53] "fiftytwo" "fiftythree"
[55] "fiftyfour" "fiftyfive"
[57] "fiftysix" "fiftyseven"
[59] "fiftyeight" "fiftynine"
[61] "sixty" "sixtyone"
[63] "sixtytwo" "sixtythree"
[65] "sixtyfour" "sixtyfive"
[67] "sixtysix" "sixtyseven"
[69] "sixtyeight" "sixtynine"
[71] "seventy" "seventyone"
[73] "seventytwo" "seventythree"
[75] "seventyfour" "seventyfive"
[77] "seventysix" "seventyseven"
[79] "seventyeight" "seventynine"
[81] "eighty" "eightyone"
[83] "eightytwo" "eightythree"
[85] "eightyfour" "eightyfive"
[87] "eightysix" "eightyseven"
[89] "eightyeight" "eightynine"
[91] "ninety" "ninetyone"
[93] "ninetytwo" "ninetythree"
[95] "ninetyfour" "ninetyfive"
[97] "ninetysix" "ninetyseven"
[99] "ninetyeight" "ninetynine"
[101] "one hundred" "one hundred and one"
[103] "one hundred and two" "one hundred and three"
[105] "one hundred and four" "one hundred and five"
[107] "one hundred and six" "one hundred and seven"
[109] "one hundred and eight" "one hundred and nine"
[111] "one hundred and ten" "one hundred and eleven"
[113] "one hundred and twelve" "one hundred and thirteen"
[115] "one hundred and fourteen" "one hundred and fifteen"
[117] "one hundred and sixteen" "one hundred and seventeen"
[119] "one hundred and eighteen" "one hundred and nineteen"
[121] "one hundred and twenty" "one hundred and twentyone"
[1] "one million"
[1] "one hundred billion, twelve million, three hundred fortyfive thousand, six hundred seventyeight"
[1] "minus nine hundred eightyseven million, six hundred fiftyfour thousand, three hundred twentyone"
[1] "nine hundred ninetynine trillion, nine hundred ninetynine billion, nine hundred ninetynine million, nine hundred ninetynine thousand, nine hundred ninetynine"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.