crop_spam: SPAM crop data

View source: R/crop_spam.R

crop_spamR Documentation

SPAM crop data

Description

SPAM crop data

Usage

spamCrops()
crop_spam(crop="", var="area", path=".", africa=FALSE, ...)

Arguments

crop

character. See spamCrops for valid names

var

character. variable of interest. Must be one of "yield", "harv_area" (harvested area), "phys_area" (physical area), "prod" (production) or "val_prod" (value of production)

path

character. Path name where the data should be downloaded to

africa

logical. retrieve the (updated) data for Africa instead of global data

...

additional arguments passed to download.file

Value

SpatRaster

References

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

See Also

https://www.mapspam.info/data/

Examples


cas <- crop_spam("cassava", "area", path=tempdir(), TRUE)


geodata documentation built on Dec. 1, 2022, 5:12 p.m.