Description Usage Arguments Value Note Examples
Strip everything after the first set of number like items
1 | strip_units(x)
|
x |
vector, usually character. |
A vector of the same class as x
, but with the trailing
non-number elements removed. It does not perform a coercion.
consider adding an as
parameter to perform coercions. See 2nd
example for comma left in.
1 2 | strip_units( '32 ft/s^2')
strip_units( '1,001 nights' )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.