st_span_split: Add column split spanner information to st object

View source: R/table-object.R

st_span_splitR Documentation

Add column split spanner information to st object

Description

See the span_split argument passed to stable() and then tab_spanners().

Usage

st_span_split(x, ..., split = TRUE)

Arguments

x

an stobject

...

passed to colsplit()

split

passed to colsplit(), if split is FALSE, then an error is generated

Details

There can only be one span_split per table; if st_span_split is called more than once in a pipeline, a warning will be issued on every call after the first one and only the latest span_split data will be retained in the table.

Examples

library(dplyr)

file <- system.file("datasets", "with-dots.RDS", package = "pmtables")

data <- readRDS(file)

st_new(data) %>% st_span_split('.') %>% st_make()


metrumresearchgroup/pmtables documentation built on Oct. 27, 2024, 5:16 p.m.