numeric.extract: Extract numerical values from a string

Description Usage Arguments Value Examples

Description

Extract numerical values from a string

Usage

1
numeric.extract(x, sep = " ")

Arguments

x

character string;

sep

character; 0 or 1 characters

Value

numeric []

Examples

1
2
3
4
5
# sep = " " insists on exactly one space between numbers
Rflow:::numeric.extract("1 2  3", " ")

# sep = "" allows any amount of white space between numbers
Rflow:::numeric.extract("1 2  3", "")

CJBarry/Rflow documentation built on June 16, 2019, 12:35 p.m.