Controls how the variability display column is constructed.
Usage
set_spec_variability(spec, ..., overwrite = FALSE)
Arguments
- spec
A TableSpec object
- ...
Variability rule formulas
- overwrite
If FALSE (default), append to existing rules.
If TRUE, replace all existing rules.
Examples
spec <- TableSpec() |>
set_spec_variability(
fixed ~ "(Fixed)",
!is.na(cv) ~ sprintf("CV = %s%%", cv),
TRUE ~ NA_character_
)