extrae_num: Extraer números

View source: R/utiles.R

extrae_numR Documentation

Extraer números

Description

Combina muy bien con limpia_num (ver ejemplos)

Usage

extrae_num(x)

Arguments

x

character. Vector con expresiones (presumiblemente) numéricas

Value

Vector character en los que sólamente figuran

See Also

limpia_num

Examples

v <- c("2,0e-4 µg/L", "<0...0002", "<0,0002", "<0.5", "<0,,5", "0.02 µg/L",
       "<1,0E+02", "<P0.Ea5", "< 0.2", "<< 34. 06E + 12 ug /L")
extrae_num(v)
extrae_num(v) %>% limpia_num()
extrae_num(v) %>% limpia_num() %>% as.numeric
limpia_num(extrae_num(v))
limpia_num(extrae_num(v))

jumanbar/manoSIAR documentation built on April 25, 2022, 1:35 p.m.