Learn R Programming

dateutils (version 0.1.5)

extract_numeric: Extract numeric values

Description

Extract numeric values from x

Usage

extract_numeric(x)

Arguments

x

object containing numeric (and other) values

Value

Numeric values from the object

Examples

Run this code
# NOT RUN {
extract_numeric(c("7+5", "abc123")) ## c(75, 123)
# }

Run the code above in your browser using DataLab