Method used to calculate the statistics of all layers. It can be re-used to calculate statistics for a cropped version of the rasters.
Arguments
- layercode
character. Name of the layer.
- raster
RasterLayer. The raster you want to calculate statistics for.