A Modified Version of 'within'

Share:

Description

This is a modified version of the data.frame method of the generic function within: If transformations in 'within' result in an item object, the function returns a 'data.set' object. Variables in the resulting data frame or 'data.set' object will appear in the order of their creation by the transformation in the call of 'within'.

Usage

1
2
    ## S3 method for class 'data.frame'
within(data, expr, ...)

Arguments

data

a data frame.

expr

an expression to evaluate.

...

further arguments, currently ignored as in the default method.