Set section rules for a spec
set_spec_sections.RdControls how rows are grouped into sections. Pass formula expressions where the LHS is a condition and the RHS is the section label.
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"
)