Skip to contents

Filters out rows belonging to specified sections. Use NA to also filter unmatched rows (those that didn't match any section rule).

Usage

set_spec_section_filter(spec, ...)

Arguments

spec

A TableSpec or SummarySpec object

...

Section labels to exclude. Pass NA to exclude unmatched rows. Call with no arguments to clear the filter.

Value

Modified spec

Examples

spec <- SummarySpec(
  sections = section_rules(
    "base" %in% tags ~ "Base Models",
    TRUE ~ "Other"
  )
) |>
  set_spec_section_filter("Other")