ParseNumber {bfw}R Documentation

Parse Numbers

Description

simple function to extract numbers from string/vector

Usage

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

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

[Package bfw version 0.4.1 Index]