add_suffix_to_vars {admiraldev}R Documentation

Add a Suffix to Variables in a List of Expressions

Description

Add a suffix to variables in a list of expressions

Usage

add_suffix_to_vars(order, vars, suffix)

Arguments

order

List of expressions

Permitted Values: list of variables or ⁠desc(<variable>)⁠ function calls created by exprs(), e.g., exprs(ADT, desc(AVAL))

vars

Variables to change

Permitted Values: list of variables created by exprs()

suffix

Suffix

Permitted Values: A character scalar

Value

The list of expression where for each element the suffix (suffix) is added to every symbol specified for vars

See Also

Helpers for working with Quosures: expr_c(), replace_symbol_in_expr(), replace_values_by_names()

Examples

library(dplyr, warn.conflicts = FALSE)
library(rlang)

add_suffix_to_vars(exprs(ADT, desc(AVAL), AVALC), vars = exprs(AVAL), suffix = ".join")

[Package admiraldev version 1.1.0 Index]