raster.clean {red} | R Documentation |
Uniformize raster layers.
Description
Crop raster layers to minimum size possible and uniformize NA values across layers.
Usage
raster.clean(layers)
Arguments
layers |
Raster* object as defined by package raster. |
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
A Raster* object, same class as layers.
Examples
layers = red.examples("red.layers")
terra::plot(raster.clean(layers))
[Package red version 1.6.1 Index]