labels_use_control: Update labels according to control specifications
Description
Given a list of statistic labels and and a list of control parameters, updates labels with a relevant
control specification. For example, if control has element conf_level set to 0.9, the default
label for statistic mean_ci will be updated to "Mean 90% CI". Any labels that are supplied
via labels_custom will not be updated regardless of control.
A named character vector of labels with control specifications applied to relevant labels.
Arguments
labels_default
(named character) a named vector of statistic labels to modify
according to the control specifications. Labels that are explicitly defined in labels_custom will
not be affected.
control
(named list) list of control parameters to apply to adjust default labels.
labels_custom
(named character) named vector of labels that are customized by
the user and should not be affected by control.