Subgroup creates derived variables based on numeric variables. This is generally not used directly and is dynamically called from SubgroupManager

Format

R6 class

Input

data

A data set (data frame, tibble, etc.) to create subgroups from.

mapping

A mapping (reactive list) for 'parameter', and 'parameter_value' variables

parameter

The parameter values (PARAM). If this is provided then parameter_value must be provided as well. Will only perform the analysis where parameter == parameter_value

parameter_value

See the description for parameter

options

The options for the module of type reactiveValues with values

index

The index of the subgroup that we are creating. If given, will include as the default name for the population "New subgroup: populationNumber"

Output

subgroup

Factor vector of the subgroup

subgroup_name

name of the created subgroup

See also

Super class

tidymodules::TidyModule -> Subgroup

Methods

Public methods

Inherited methods

Method new()

Usage

Subgroup$new(...)


Method ui()

Usage

Subgroup$ui()


Method server()

Usage

Subgroup$server(input, output, session)


Method clone()

The objects of this class are cloneable with this method.

Usage

Subgroup$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.