Skip to contents

get raster for crop in mapspam dataset

Usage

sp_rast(crp, africa = FALSE)

Arguments

crp

character. name of a crop. Case-insensitive.

africa

Fetch the 2017 Mpaspam crop data of Africa. Default is FALSE.

Value

SpatRaster

Details

See geodata::spamCrops() for supported crops.

References

International Food Policy Research Institute, 2020. Spatially-Disaggregated Crop Production Statistics Data in Africa South of the Sahara for 2017. <doi: 10.7910/DVN/FSSKBW>, Harvard Dataverse, V2

Examples

# \donttest{
sp_rast("potato")
sp_rast("potato", TRUE)
# }