Learn R Programming

Rrepest (version 1.5.2)

grp: 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)

Value

List containing the arguments for the grp() function used within Rrepest() function's average() and group() options.

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

Examples

Run this code
append(grp("OECD Average","CNTRY",c("HUN","MEX")), grp("Europe","CNTRY",c("ITA","FRA")))

Run the code above in your browser using DataLab