powered by
Crop raster layers to minimum size possible and uniformize NA values across layers.
NA
clean(layers)
SpatRaster. Same class as layers.
SpatRaster. As defined in package terra, see terra::rast().
terra::rast()
Excludes all marginal rows and columns with only NA values and change values to NA if they are NA in any of the layers.
region = gecko.data("layers") terra::plot(clean(region))
Run the code above in your browser using DataLab