ParseNumber: Parse Numbers

View source: R/basic_functions.R

ParseNumberR 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

bfw documentation built on March 18, 2022, 6:19 p.m.