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

View source: R/split_nrange.R

split_nrangeR Documentation

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

Description

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

Usage

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)

overdodactyl/mRclwhip documentation built on June 30, 2023, 6:24 a.m.