Split character vector of N (low, high) into three columns

split_nrange(.data, col, remove = TRUE)

Arguments

.data

A tbl.

col

Column to separate

remove

If TRUE, remove input columns from output data frame.

Value

An object of the same class as .data.

Examples

tmp <- data.frame( obs = "A", val = "1224.11 (119.3214, 134.21)", stringsAsFactors = FALSE ) tmp %>% split_nrange(val) %>% nrange(n, low, high)
#> obs Estimate #> 1 A 1,224.11 (119.32, 134.21)