hlpr_subset_across: Subset the across-variables

View source: R/helper-family.R

hlpr_subset_acrossR Documentation

Subset the across-variables

Description

Checks across and across_subset input and if at least one of the across_subset values exists filters the data accordingly.

Usage

hlpr_subset_across(data, across, across_subset)

Arguments

data

A data.frame that contains the variable specified in across.

across

Character value. Denotes the discrete variable in the data.frame across which the variables of interest are to be analyzed or displayed. Valid input options can be obtained via getAcrossOptions().

across_subset

Character vector. The groups of interest that the across- variable contains. Valid input options can be obtained via getVariableValues().

Value

A filtered data.frame, informative messages or an error.


theMILOlab/cypro documentation built on April 5, 2022, 2:03 a.m.