raster.clean | R Documentation |
Crop raster layers to minimum size possible and uniformize NA values across layers.
raster.clean(layers)
layers |
Raster* object as defined by package raster. |
Excludes all marginal rows and columns with only NA values and change values to NA if they are NA in any of the layers.
A Raster* object, same class as layers.
layers = red.examples("red.layers")
terra::plot(raster.clean(layers))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.