hlpr_subset_across: Subset the across-variables

View source: R/h.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 something is to be analyzed or displayed.

across_subset

Character vector. The groups of interest that the across- variable contains.

Value

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


kueckelj/SPATA2 documentation built on March 16, 2024, 10:25 a.m.