An expression, involving the names of columns in a hyperframe, is evaluated separately for each row of the hyperframe.
1 2 3 4
A hyperframe (object of class
An R language expression to be evaluated.
Alternative form of
An environment in which to search for objects that are
not found in the hyperframe. Defaults to
This function evaluates the expression
expr in each row
of the hyperframe
data. It is a method for the generic
expr should be an R language expression
in which each variable name is either the name of a column in the
data, or the name of an object in the parent frame
(the environment in which
with was called.)
ee can be used as an alternative
expr and should be an expression object (of
For each row of
data, the expression will be evaluated
so that variables which are column names of
interpreted as the entries for those columns in the current row.
For example, if a hyperframe
h has columns
with(h, A != B) inspects
each row of
data in turn,
tests whether the entries in columns
equal, and returns the n logical values.
Normally a list of length
n (where n is the number of rows) containing the results
of evaluating the expression for each row.
simplify=TRUE and each result is a single atomic value,
then the result is a vector or factor
containing the same values.
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.