powered by
Obtains a list with the arguments for the grp() function used within Rrepest() function's average() and group() options.
grp(group.name, column, cases, full_weight = FALSE)
List containing the arguments for the grp() function used within Rrepest() function's average() and group() options.
(string) Name of the group to be displayed
(string) Column/variable of interest to be grouped
(string vector) Rows/values to be included in the group
(bool) TRUE: average of the group will be weighted average
append(grp("OECD Average","CNTRY",c("HUN","MEX")), grp("Europe","CNTRY",c("ITA","FRA")))
Run the code above in your browser using DataLab