Substitute: Substitutions in Language Objects

Description Usage Arguments Details Value Examples

View source: R/Substitute.R

Description

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.

Usage

1

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".

Examples

1
2
3
lang <- quote(sin(x)+z)
substitute(lang,list(x=1,z=2))
Substitute(lang,list(x=1,z=2))

memisc documentation built on Oct. 2, 2017, 9:03 a.m.

Related to Substitute in memisc...