Construct a csfmt measure column name from components
Usage
csfmt_var(
measure,
denom = NULL,
role = NULL,
q = NULL,
level = NULL,
per = NULL,
suffix = NULL
)Arguments
- measure
Character scalar, the measure identity (e.g. "consults_r80").
- denom
Optional denominator name; inserts `_vs_<denom>`.
- role
Optional statistic role: observed/nowcasted/forecasted/trend/baseline/status.
- q
Optional probability for a quantile coordinate (mutually exclusive with `level`).
- level
Optional status level for a `prob_<level>` coordinate.
- per
Optional rate scaling (e.g. 100 -> `_pr100`).
- suffix
Optional unit suffix (e.g. "_n").
See also
vignette("pipeline", package = "csalert"), whose closing
section builds a column name with this function and takes it apart again with
csfmt_parse.
Other naming grammar functions:
csfmt_interpret(),
csfmt_parse(),
q_label(),
q_value()
