This function evaluates the expression expr
in each row
of the hyperframe data
. It is a method for the generic
function with
.
The argument expr
should be an R language expression
in which each variable name is either the name of a column in the
hyperframe data
, or the name of an object in the parent frame
(the environment in which with
was called.)
The argument ee
can be used as an alternative
to expr
and should be an expression object (of
class "expression"
).
For each row of data
, the expression will be evaluated
so that variables which are column names of data
are
interpreted as the entries for those columns in the current row.
For example, if a hyperframe h
has columns
called A
and B
, then with(h, A != B)
inspects
each row of data
in turn,
tests whether the entries in columns A
and B
are
equal, and returns the \(n\) logical values.