View source: R/utils-number-to-word.R
number_to_word | R Documentation |
Change a number into an English word
number_to_word(x = NA, th = FALSE, cap_first = FALSE)
x |
The number to convert |
th |
Logical. If TRUE the |
cap_first |
Logical. Capitalize the first letter of the returned string? |
See https://github.com/ateucher/useful_code/blob/master/R/numbers2words.r See Function by John Fox found here: http://tolstoy.newcastle.edu.au/R/help/05/04/2715.html
The English word representing the number
number_to_word(c(1000,2,3,10000001), th = TRUE, cap_first = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.