apply_benchmarks | R Documentation |
Using data that has unique identifier and indicator value variables, apply benchmarks. The benchmarks are applied to the data based on the benchmark group(s) that the data belong to, which may already be assigned in the data or may be added with a benchmark group lookup table.
apply_benchmarks(
data,
benchmarks,
data_id_vars,
data_group_var = NULL,
benchmark_group_var = "Benchmark_Group",
benchmark_indicator_var = "Indicator",
use_tdat_indicator_lookup = TRUE
)
data |
Data frame. The data to be benchmarked. Must contain the variable(s) in |
benchmarks |
Data frame. The benchmarks in the format produced by |
data_id_vars |
Character string or vecor of character strings. The names of the variable(s) in |
data_group_var |
Optional character string. The name of the variable that holds the benchmark group memberships. If |
benchmark_group_var |
Character string. The name of the variable that holds the benchmark group memberships. Defaults to |
benchmark_indicator_var |
Character string. The name of the variable that holds the indicator names in the benchmarks. Defaults to |
use_tdat_indicator_lookup |
Logical. Set to |
A long data frame of each point/benchmarked indicator combination with the assigned condition category.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.