Save randomized raster object
Details
Because of how SpatRaster are saved (need to be packed), this function wraps
all raster objects and prepares them for saving first. For further details, see wrap
.
See also
unpack_randomized
wrap
Examples
if (FALSE) { # \dontrun{
landscape_classified <- classify_habitats(terra::rast(landscape), n = 5, style = "fisher")
landscape_random <- randomize_raster(landscape_classified, n_random = 3)
x <- pack_randomized(raster = landscape_random)
} # }