nnum
nnum.RdReturns the name of a specified number.
Details
This function returns the name of a given number, specifically for numbers ranging from 0 to 10. It uses an array that defines the names of the numbers from one to ten, including zero at the end. The user specifies the names of the numbers in the chosen language.
Examples
if (FALSE) { # \dontrun{
## Number in English.
nnames <- c("one", "two", "three",
"four", "five", "six",
"seven", "eight", "nine",
"ten", "zero")
x <- 2
nnum(x,nnames)
## Number in Spanish.
nnames <- c("uno", "dos", "tres",
"cuatro", "cinco", "seis",
"siete", "ocho", "nueve",
"diez","cero")
x <- 2
nnum(x,nnames)
} # }