labels_use_control {tern} | R Documentation |
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
.
Usage
labels_use_control(labels_default, control, labels_custom = NULL)
Arguments
labels_default |
(named |
control |
(named |
labels_custom |
(named |
Value
A named character vector of labels with control specifications applied to relevant labels.
Examples
control <- list(conf_level = 0.80, quantiles = c(0.1, 0.83), test_mean = 0.57)
get_labels_from_stats(c("mean_ci", "quantiles", "mean_pval")) %>%
labels_use_control(control = control)