split_nrange | R Documentation |
Split character vector of N (low, high) into three columns
split_nrange(.data, col, remove = TRUE)
.data |
A tbl. |
col |
Column to separate |
remove |
If TRUE, remove input columns from output data frame. |
An object of the same class as .data.
tmp <- data.frame(
obs = "A",
val = "1224.11 (119.3214, 134.21)",
stringsAsFactors = FALSE
)
tmp %>%
split_nrange(val) %>%
nrange(n, low, high)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.