aggr_and_merge | R Documentation |
Creates country level variables by aggregating individual level variables
aggr_and_merge(
variables,
group,
data,
FUN = "mean",
prefix = paste0(group, ".")
)
variables |
Variable to be aggregated. |
group |
Grouping variable. |
data |
A dataset with individual-level data. |
FUN |
Aggregation function, mean by default. |
prefix |
Character string, what should be added to the names of aggregated variables. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.