wrapset {refset}R Documentation

Convenience function to create a parcel containing a refset.

Description

wrapset calls refset on its arguments and returns the resulting active binding in a parcel object for passing around.

Usage

wrapset(data, ..., env = parent.frame())

Arguments

data, ...

passed to refset

env

passed to refset as argument eval.env

Value

A parcel object.

See Also

Other wrapping functions: contents, is.parcel, unwrap_as, wrap

Examples

dfr <- data.frame(a=1:5, b=1:5)
parcel <- wrapset(dfr, a<3, , drop=FALSE)
contents(parcel)


[Package refset version 0.1.1 Index]