wrap | R Documentation |
Use wrap
to pack a SpatVector or SpatRaster* to create a Packed* object. Packed objects can be passed over a connection that serializes (e.g. to nodes on a computer cluster). At the receiving end they need to be unpacked with unwrap
.
## S4 method for signature 'SpatRaster'
wrap(x, proxy=FALSE)
## S4 method for signature 'SpatRasterDataset'
wrap(x, proxy=FALSE)
## S4 method for signature 'SpatRasterCollection'
wrap(x, proxy=FALSE)
## S4 method for signature 'SpatVector'
wrap(x)
## S4 method for signature 'ANY'
unwrap(x)
x |
SpatVector, SpatRaster, SpatRasterDataset or SpatRasterCollection |
proxy |
logical. If |
wrap
: Packed* object
unwrap
: SpatVector, SpatRaster, SpatRasterCollection, SpatRasterDataset
f <- system.file("ex/lux.shp", package="terra")
v <- vect(f)
p <- wrap(v)
p
vv <- vect(p)
vv
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.