sp_rast {geohabnet}R Documentation

Raster for mapspam crop.

Description

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.

Details

See geodata::spamCrops() for supported crops.

Value

SpatRaster

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


sp_rast("potato")
sp_rast("potato", TRUE)


[Package geohabnet version 2.1.3 Index]