Description Usage Format Details Note Source Examples
For internal use in words2number
. When passed as a replacement
to a function like
str_replace_all
, it turns the
string into an arithmetic expression that can be evaluated to give an integer
representation of the named number.
1 |
An object of class character
of length 49.
Lifted from Ben Marwick's words2number
package and converted into
a named vector (previously a chain of gsub
calls).
Does not yet fully support decimals, fractions or mixed fractions. Some limited support for 'half' expressions, e.g. 'one and a half'.
https://github.com/benmarwick/words2number
1 2 3 4 | ## Not run:
stringr::str_replace_all('one hundred and forty-two', numb_replacements)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.