ParseNumber {bfw} | 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 |
ParseNumber("String1WithNumbers2")
# [1] 1 2