grp: Group list

View source: R/pv_rrepest_groups_argument.R

grpR 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")))


Rrepest documentation built on April 4, 2025, 2:07 a.m.