Create KPI tables
kpi.Rd
Create KPI tables
Arguments
- data
a data frame
- var
the variable to summarize
- by
optional variable(s) to group over
- kpi_fn
summary function
- txt
a descriptive text
- n_iqr
number of IQRs below/above the lower/upper quartiles that should be considered outliers
- breakpoints
cut points (if KPIs use a traffic light system)
- risklabels
labels for the cut points. By default, variations on low/moderate/high are used
- riskcolors
colors for the cut points. By default, variations on green/yellow/red are used
- direction
seriousness relative to
breakpoints
- raw_cut
add a group variable without applying
risklabels
- keep_data
keep raw data or not