pack_randomized: pack_randomized

View source: R/pack_randomized.R

pack_randomizedR Documentation

pack_randomized

Description

Save randomized raster object

Usage

pack_randomized(raster)

Arguments

raster

rd_ras object with randomized raster.

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.

Value

rd_ras

See Also

unpack_randomized wrap

Examples

## 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)


mhesselbarth/SHAR documentation built on Dec. 17, 2024, 3:45 p.m.