Substitute

0th

Percentile

Substitutions in Language Objects

Substitute differs from substitute in so far as its first argument can be a variable that contains an object of mode "language". In that case, substitutions take place inside this object.

Keywords
programming
Usage
Substitute(lang,with)
Arguments
lang

any object, unevaluated expression, or unevaluated language construct, such as a sequence of calls inside braces

with

a named list, environment, data frame or data set.

Details

The function body is just do.call("substitute",list(lang,with)).

Value

An object of storage mode "language" or "symbol".

Aliases
  • Substitute
Examples
# NOT RUN {
lang <- quote(sin(x)+z)
substitute(lang,list(x=1,z=2))
Substitute(lang,list(x=1,z=2))
# }
Documentation reproduced from package memisc, version 0.99.27.3, License: GPL-2

Community examples

Looks like there are no examples yet.