substituteDirect
Substitute in an Expression

Description

Returns an expression with subsitutions made relative to an environment or list.

Usage

substituteDirect(object, frame=parent.frame(), cleanFunction=TRUE)

Arguments

object an expression object.
frame an environment or a list that is used to make the substitutions.
cleanFunction a logical value. If TRUE (the default), and the result of the substitution is a function, its environment is set to the global environment. If FALSE, the environment is not changed.

Details

This function is like the substitute function, except that the first argument is always evaluated.
Value
returns the object expression object, with any names occurring in object replaced by the corresponding component of frame.
See Also
substitute.
Package methods version 6.1.1-7
Package Index