grp {Rrepest} | R Documentation |
Group list
Description
Obtains a list with the arguments for the grp() function used within Rrepest() function's average() and group() options.
Usage
grp(group.name, column, cases, full_weight = FALSE)
Arguments
group.name |
(string) Name of the group to be displayed |
column |
(string) Column/variable of interest to be grouped |
cases |
(string vector) Rows/values to be included in the group |
full_weight |
(bool) TRUE: average of the group will be weighted average |
Value
List containing the arguments for the grp() function used within Rrepest() function's average() and group() options.
Examples
append(grp("OECD Average","CNTRY",c("HUN","MEX")), grp("Europe","CNTRY",c("ITA","FRA")))
[Package Rrepest version 1.5.4 Index]