check_across_subset: Subset the across-variables

View source: R/miscellaneous-data-frame.R

check_across_subsetR Documentation

Subset the across-variables

Description

Checks across and across.subset input and if at least one of the across.subset values exists if the letter is not NULL. It then filters the input data.frame accordingly.

Usage

check_across_subset(
  df,
  across,
  across.subset,
  relevel = TRUE,
  fdb.fn = "warning"
)

check_across_subset2(df, across, across.subset, relevel)

Arguments

df

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

Value

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


kueckelj/confuns documentation built on July 4, 2024, 4:53 p.m.