Description Usage Arguments Value Examples
to summarise a half degree grid to land area, country or region, gives n, mean and percent. If you pass a 0/1 raster to it it will give the perecnt of cells that are 1. Probably should go in another package, but here for a start.
1 | summ_half_degree(input, by = "region")
|
input |
either a raster of half degree cells or a data frame with 259200 cells in the order output by raster |
by |
'region', 'land' or 'country' - later can offer other options, e.g. 'continent' |
dataframe with results summarised by region or country
1 2 3 | #summ_half_degree()
ec_out_potato <- raster(system.file("extdata", "ec_out_potato.grd", package = "climcropr"))
summ_half_degree(ec_out_potato)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.