Skip to contents

Controls how rows are grouped into sections. Pass formula expressions where the LHS is a condition and the RHS is the section label.

Usage

set_spec_sections(spec, ..., overwrite = FALSE)

Arguments

spec

A TableSpec or SummarySpec object

...

Section rule formulas

overwrite

If FALSE (default), append to existing rules. If TRUE, replace all existing rules.

Value

Modified spec

Details

For TableSpec, rules are evaluated against parameter columns (e.g., kind == "THETA" ~ "Structural Parameters").

For SummarySpec, rules are evaluated row-by-row against summary columns including tags (e.g., "base" %in% tags ~ "Base Models").

Examples

spec <- TableSpec() |>
  set_spec_sections(
    kind == "THETA" ~ "Structural",
    kind == "OMEGA" ~ "IIV"
  )