powered by
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 SpatRaster wrap(x)# S4 method for SpatVector wrap(x)
# S4 method for SpatVector wrap(x)
SpatVector or SpatRaster
Packed* object
# NOT RUN { f <- system.file("ex/lux.shp", package="terra") v <- vect(f) p <- wrap(v) p vv <- vect(p) vv # }
Run the code above in your browser using DataLab