parse_num: Parse numeric values from a string

View source: R/helpers.R

parse_numR Documentation

Parse numeric values from a string

Description

Extract numeric values from a character string.

Usage

parse_num(x, as = c("numeric", "integer", "character"), all = FALSE)

Arguments

x

A character string.

as

A character vector describing the type of output values. One of c("numeric", "integer", "character").

all

Should all numeric values be extracted? By default, parses the first numeric value.


arnaudgallou/toolkit documentation built on Nov. 25, 2022, 5:42 p.m.