substitute_names {teal.modules.clinical}R Documentation

Substitute Names in a Quoted Expression

Description

This function substitutes the names on both left- and right-hand sides in a quoted expression. In addition it can also do other standard substitutions on the right-hand side.

Usage

substitute_names(expr, names, others = list())

h_subst_lhs_names(qexpr, names)

substitute_lhs_names(qexpr, names)

substitute_rhs(qexpr, env)

Arguments

expr

(language)
an expression.

names

(named list of name)
requested name substitutions.

others

(named list)
requested other substitutions which will only happen on the right-hand side.

qexpr

(language)
a quoted expression.

env

(environment or list)
requested variable substitutions.

Value

The modified expression.

Functions

See Also

substitute_q()


[Package teal.modules.clinical version 0.9.1 Index]