R/worldpop_covariates.R
get_worldpop_covariate.Rd
This function is used internally by the cov_nightlight and cov_water modules to fetch data from worldpop
get_worldpop_covariate(covariate, country_code, year)
character. Either mean_temperature, total_precipitation, distance_to_inland_water or nightlights
mean_temperature
total_precipitation
distance_to_inland_water
nightlights
character
numeric. The requested year (2015-2023 only)
a SpatRaster for the requested country
Simon Smart simon.smart@cantab.net