to_numeric: Takes out all the numbers in a string and converts to a...

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

to_string extracts the numbers in a character vector and returns the extracted numbers as a numeric vector.

Usage

1
  to_numeric(strings)

Arguments

strings

Character vector

Value

Returns a vector of class "numeric".

Examples

1
2
strings <- c("FO23_43", "F10.4", "what3,00.", "what3..0..")
to_numeric(strings)

tldutils documentation built on May 2, 2019, 6:10 p.m.