View source: R/basic_functions.R
ParseNumber | R Documentation |
simple function to extract numbers from string/vector
ParseNumber(x, digits = FALSE)
x |
string or vector |
digits |
logical, indicating whether or not to extract decimals, Default: FALSE |
na.omit
ParseNumber("String1WithNumbers2") # [1] 1 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.