negate_vars: Negate List of Variables

Description Usage Arguments Details Author(s) Examples

View source: R/utils.R

Description

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

Usage

1

Arguments

vars

List of variables created by vars()

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.

Author(s)

Stefan Bundfuss

Examples

1
negate_vars(vars(USUBJID, STUDYID))

epijim/admiral documentation built on Feb. 13, 2022, 12:15 a.m.