Learn R Programming

geohabnet (version 2.1.3)

sp_rast: Raster for mapspam crop.

Description

get raster for crop in mapspam dataset

Usage

sp_rast(crp, africa = FALSE)

Value

SpatRaster

Arguments

crp

character. name of a crop. Case-insensitive.

africa

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

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

See Also

geodata::spamCrops() search_crop()

Examples

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

Run the code above in your browser using DataLab