| unwrap_as {refset} | R Documentation |
Unwrap contents of a parcel into a new variable
Description
unwrap_as creates a new variable which, when evaluated,
calls contents to return the parcel contents.
Usage
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,
is.parcel, wrapset,
wrap
Examples
vec <- 1:10
parcel <- wrapset(vec, vec > 3)
unwrap_as(y, parcel)
y
[Package refset version 0.1.1 Index]