unwrap_as: Unwrap contents of a parcel into a new variable

Description Usage Arguments See Also Examples

Description

unwrap_as creates a new variable which, when evaluated, calls contents to return the parcel contents.

Usage

1
unwrap_as(x, parcel, env = parent.frame())

Arguments

x

name of the variable to bind to

parcel

an object of class 'parcel'

env

environment to assign the variable into

See Also

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

Examples

1
2
3
4
vec <- 1:10
parcel <- wrapset(vec, vec > 3)
unwrap_as(y, parcel)
y


Search within the refset package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.