The generic form of the get_*() / set_*() family: one function covering every per-column
attribute a tabxplor_fmt vector carries, so a helper can loop over them instead of naming each.
The named accessors (get_scale(), get_col_var(), is_totcol(), …) remain the readable way to
address one known attribute.
Arguments
- x
A
tabxplor_fmtvector, or a data.frame (then everyfmtcolumn is read).- name
The attribute: one of
"scale","comp_all","ref","pct_type","col_var","col_group","totcol","refcol","color","color_signif","model_family","role","conf_level","degf","basis","ci_method". An unknown name is an error naming the set.- value
The new value. Written through the attribute's own setter, so it is validated exactly as
set_scale()and friends validate it.
Value
The stored value (its declared default when the attribute is unset). On a data.frame, one
entry per fmt column, named. Writing returns the modified vector.
See also
tab_columns() for every column's attributes at once; fmt() for what each one means.