negate_vars: Negate List of Variables

View source: R/user_utils.R

negate_varsR Documentation

Negate List of Variables

Description

The function adds a minus sign as prefix to each variable.

Usage

negate_vars(vars = NULL)

Arguments

vars

List of variables created by exprs()

Details

This is useful if a list of variables should be removed from a dataset, e.g., select(!!!negate_vars(by_vars)) removes all by variables.

Value

A list of expressions

See Also

Other utils_quo: chr2vars()

Examples

negate_vars(exprs(USUBJID, STUDYID))

admiral documentation built on Oct. 19, 2023, 1:08 a.m.