Add labels to the result table
add_label_columns_to_results_table.Rd
Add labels to the result table
Examples
add_label_columns_to_results_table(
results_table = presentresults_MSNA2024_results_table,
dictionary = presentresults_MSNA2024_dictionary
)
#> Joining with `by = join_by(analysis_type)`
#> Joining with `by = join_by(analysis_key)`
#> # A tibble: 5,145 × 22
#> analysis_type analysis_var analysis_var_value group_var group_var_value stat
#> <chr> <chr> <chr> <chr> <chr> <dbl>
#> 1 prop_select_… snfi_fds_ca… 1 admin1 PCODE1 0.286
#> 2 prop_select_… snfi_fds_ca… 2 admin1 PCODE1 0.143
#> 3 prop_select_… snfi_fds_ca… 3 admin1 PCODE1 0.429
#> 4 prop_select_… snfi_fds_ca… 4 admin1 PCODE1 0.143
#> 5 prop_select_… snfi_fds_ca… 1 admin1 PCODE2 0.267
#> 6 prop_select_… snfi_fds_ca… 2 admin1 PCODE2 0.267
#> 7 prop_select_… snfi_fds_ca… 3 admin1 PCODE2 0.333
#> 8 prop_select_… snfi_fds_ca… 4 admin1 PCODE2 0.133
#> 9 prop_select_… snfi_fds_ca… 1 resp_gen… female 0.25
#> 10 prop_select_… snfi_fds_ca… 3 resp_gen… female 0.25
#> # ℹ 5,135 more rows
#> # ℹ 16 more variables: stat_low <dbl>, stat_upp <dbl>, n <dbl>, n_total <dbl>,
#> # n_w <dbl>, n_w_total <dbl>, analysis_key <chr>, theme <chr>, module <chr>,
#> # indicator <chr>, label_analysis_var <chr>, label_analysis_var_value <chr>,
#> # label_group_var <chr>, label_group_var_value <chr>,
#> # label_analysis_type <chr>, label_analysis_key <chr>