Learn R Programming

geohabnet (version 2.1.3)

crops_rast: Get sum of rasters for individual crops

Description

Takes crop names and returns raster object which is sum of raster of individual crops. Currently, only supports crops listed in geodata::monfredaCrops(), geodata::spamCrops() If crop is present in multiple sources, then their mean is calculated.

Usage

crops_rast(crop_names)

Value

SpatRaster. Raster object which is sum of all the individual crop raster

Arguments

crop_names

A named list of source along with crop names

See Also

cropharvest_rast()

Examples

Run this code
# \donttest{
crops_rast(list(monfreda = c("wheat", "barley"), mapspam2010 = c("wheat", "potato")))
# }

Run the code above in your browser using DataLab