1\name{Substitute} 2\alias{Substitute} 3\title{Substitutions in Language Objects} 4\description{ 5 \code{Substitute} differs from \code{\link{substitute}} 6 in so far as its first argument can be a variable that 7 contains an object of mode "language". In that case, 8 substitutions take place inside this object. 9} 10\usage{ 11Substitute(lang,with) 12} 13\arguments{ 14 \item{lang}{any object, unevaluated expression, or 15 unevaluated language construct, such as a sequence 16 of calls inside braces 17 } 18 \item{with}{ 19 a named list, environment, data frame or data set. 20 } 21} 22\details{ 23 The function body is just 24 \code{do.call("substitute",list(lang,with))}. 25} 26\value{ 27 An object of storage mode "language" or "symbol". 28} 29\examples{ 30lang <- quote(sin(x)+z) 31substitute(lang,list(x=1,z=2)) 32Substitute(lang,list(x=1,z=2)) 33} 34\keyword{programming}