statstable_expand: Expands compact statstable to a table with one stats per row

View source: R/statstable.R

statstable_expandR Documentation

Expands compact statstable to a table with one stats per row

Description

For each comma seperated value in a cell a new row is added.

Usage

statstable_expand(statstable, sep = "\\s*,\\s*")

Arguments

statstable

compact statstable

sep

seperator of combined values

Value

expanded statstable

See Also

  • tidyr::seperate_rows() is used to expand the table. One call per column.

Examples

statstable <- tibble::tribble(
  ~parameter, ~statistic, ~from, ~to,
  "O3, NO2", "min, max", "h1, d1", "m1, y1"
)
statstable_expand(statstable)


Ostluft/rOstluft documentation built on Feb. 6, 2024, 1:26 a.m.