calculate_statistics: Calculate statistics for a given raster.
Description
Method used to calculate the statistics of all layers. It can be re-used to
calculate statistics for a cropped version of the rasters.
Usage
calculate_statistics(layercode, raster)
Value
A dataframe with the layercode and all basic statistics.
Arguments
- layercode
character. Name of the layer.
- raster
RasterLayer. The raster you want to calculate statistics for.