This function is in experimental development. It currently only supports English cardinal integers or character vectors produced by one of nombre's functions.

uncardinal(x) nom_uncard(x)

x | A character vector of the cardinal names of numbers |
---|

A numeric vector the same length as `n`

.
NAs will be produced for numbers with fractions or decimals or non-cardinal
numbers (e.g. ordinals).

`cardinal()`

to convert numeric vectors to number names

uncardinal("one")#> [1] 1uncardinal("negative one hundred fifty-seven")#> [1] -157uncardinal( c( "twenty-five", "one million two hundred thirty-four thousand five hundred sixty-seven" ) )#> [1] 25 1234567uncardinal("infinity")#> [1] Inf#> [1] 25#> [1] 25