wrap (pack) a SpatRaster or SpatVector object
Wrap a SpatRaster or SpatVector object to create a Packed* object that it can be saved as an R object to disk, or passed over a connection that serializes (e.g. using a computer cluster).
## S4 method for signature 'SpatRaster' wrap(x) ## S4 method for signature 'SpatVector' wrap(x)
x |
SpatVector or SpatRaster |
Packed* object
f <- system.file("ex/lux.shp", package="terra") v <- vect(f) p <- wrap(v) p vv <- vect(p) vv
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.