Learn R Programming

bfw (version 0.4.2)

ParseNumber: 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

Run this code
# NOT RUN {
 ParseNumber("String1WithNumbers2")
 # [1] 1 2
# }

Run the code above in your browser using DataLab