Description Usage Arguments Value Source Examples
Convert English names of numbers to their numerical values
1 | words2number(txt)
|
txt |
A character vector containing names of numbers (only). |
A named numeric vector of the same length as phrase
.
Originally adapted from the
words2number
package by
Ben Marwick.
1 2 3 | words2number('seven')
words2number('forty-two')
words2number(c('three', 'one', 'twenty two thousand'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.