View source: R/aggregate_soilgrids.R
aggregate_soilgrids | R Documentation |
It allows to transform and aggregate SoilGrids rasters. I.e. from SoilGrids one would download several layers (0-5, 5-15, 15-30, etc.). This function will take an average among them and convert to conventional units (see SoilGrids FAQ)
aggregate_soilgrids(r)
r |
SpatRaster, single/multiple layer with soil characteristics.
Outcome of the |
SpatRaster
library(purrr) f <- system.file("extdata/extent.shp", package="rusleR") v <- vect(f) sand <- get_soilgrids(v, layer = "sand") sand sand_agg <- aggregate_soilgrids(sand) sand_agg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.