View source: R/pack_randomized.R
pack_randomized | R Documentation |
Save randomized raster object
pack_randomized(raster)
raster |
rd_ras object with randomized raster. |
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
.
rd_ras
unpack_randomized
wrap
## Not run:
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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.