clean {gecko} | R Documentation |
Crop raster layers to minimum size possible and uniformize NA
values across layers.
clean(layers)
layers |
SpatRaster. As defined in package terra, see |
Excludes all marginal rows and columns with only NA
values and change values to NA
if they are NA
in any of the layers.
SpatRaster. Same class as layers.
region = gecko.data("layers")
terra::plot(clean(region))