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