ParseNumber: Parse Numbers

Description Usage Arguments See Also Examples

View source: R/basic_functions.R

Description

simple function to extract numbers from string/vector

Usage

1
ParseNumber(x, digits = FALSE)

Arguments

x

string or vector

digits

logical, indicating whether or not to extract decimals, Default: FALSE

See Also

na.omit

Examples

1
2
 ParseNumber("String1WithNumbers2")
 # [1] 1 2

bfw documentation built on Jan. 11, 2020, 9:29 a.m.