Evaluate expression in given context

DESCRIPTION:

Evaluate expression, looking up objects in expression in given frame, data.frame, or list.

USAGE:

with(data, expr, ...)

REQUIRED ARGUMENTS:

data
A list, data.frame, pframe, or frame number.
expr
A literal expression. It should not be wrapped in the expression function. It should refer to elements of the data argument.

OPTIONAL ARGUMENTS:

...
Other arguments are accepted but are currently ignored. Future methods of with() may use them.

VALUE:

The value of the evaluated expression, where the names in the expression are looked for first in the data object, then in frames 1 and 0, and finally in the attached Splus databases.

METHODS:

The with function has the following methods:
default, pframe.

DETAILS:

This is basically a wrapper for the eval function where data is used as the local= argument to eval. If data is a data.frame then its column names may be used in the expression. If data is a pframe object, then parameters(data) may be used in addition to the column names.

SEE ALSO:

.

EXAMPLES:

with(fuel.frame, symbols(x=Weight, y=Mileage, circles=Disp., inches=.25))