Skip to contents

R6 class for mapping a group of variable(s) and their label to data

Public fields

group

data.frame or character defining the groups or group variables to group by

label

character printed name of the grouping

Methods


Method new()

Create a new Grouping object

Usage

Grouping$new(group, label = NULL)

Arguments

group

data.frame or character vector of groups

label

character name of the group

Returns

A new Grouping object


Method getCaptions()

Get the caption associated to each group

Usage

Grouping$getCaptions(data, metaData = NULL)

Arguments

data

data.frame to map

metaData

list of information on the data

Returns

A vector of characters containing the captions associated to each group of data


Method clone()

The objects of this class are cloneable with this method.

Usage

Grouping$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.