sp_rast: Raster for mapspam crop.

View source: R/spam_crop.R

sp_rastR 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)


geohabnet documentation built on June 27, 2024, 5:11 p.m.