Description Usage Arguments Value See Also Examples
View source: R/coerce_integer.R
Coerces a value to numeric by removing any leading non-digit, non-decimal fields occuring at the end of the character.
1 | coerce_integer(x, strip_units = TRUE)
|
x |
values to be coerced to numeric |
strip_units |
boolean. Whether to strip the unit from the results. |
A numeric field
The stringr package.
1 2 3 | coerce_integer( '32 ft/s^2' )
coerce_integer('1,001 nights' )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.