crop_spam: SPAM crop data

Description Usage Arguments Value References See Also Examples

View source: R/crop_spam.R

Description

SPAM crop data

Usage

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

Arguments

crop

character. See spamCrops for valid names

var

character. variable of interest. Must be "area" or "yield"

path

character. Path name where the data should be downloaded to

africa

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

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

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

geodata documentation built on Sept. 29, 2021, 9:07 a.m.