Description Usage Arguments Value
View source: R/do_list_comparison.R
Perform counts of occurences in a list for two separate groups. Then merge these groups based on a specific variable.
1 2 3 4 5 6 7 8 9 10 11 12 13 | do_list_comparison(
this_data,
group1_variable,
group1_column = "count",
group1_name = "Group1",
group2_variable,
group2_column = "count",
group2_name = "Group2",
join_col = "variable",
replacement_value = "Missing",
this_function = NA,
vocab_for_variables
)
|
this_data |
The tibble in which the column exists. |
group1_variable |
The variable to use for the first group. |
group1_column |
The column of interest for the first group (default="count"). |
group1_name |
The name of the first group (default="Group1"). |
group2_variable |
The variable to use for the second group. |
group2_column |
The column of interest for the second group (default="count"). |
group2_name |
The name of the second group (default="Group2"). |
join_col |
The column to use to merge (default="variable"). |
replacement_value |
What to replace empty fields with (default="Missing"). |
this_function |
A label for error/warning messages (by default it is the name of this function). |
vocab_for_variables |
The vocabulary for the parameters, as extracted via parse_MACRO_DSD_file() |
The merged summarised counts.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.