powered by
The function adds a minus sign as prefix to each variable.
negate_vars(vars = NULL)
A list of expressions
List of variables created by exprs()
exprs()
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.
select(!!!negate_vars(by_vars))
Utilities for working with quosures/list of expressions: chr2vars()
chr2vars()
negate_vars(exprs(USUBJID, STUDYID))
Run the code above in your browser using DataLab