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

1

Arguments

data,...

passed to refset

env

passed to refset as argument eval.env

Value

A parcel object.

See Also

Other wrapping functions: contents, contents<-; is.parcel; unwrap_as; wrap

Examples

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