download_worldpop_agetifs: Function to get population data from a worldpop geotiff and...

View source: R/worldpop_data.R

download_worldpop_agetifsR Documentation

Function to get population data from a worldpop geotiff and geounit shapefile This function extracts raster values for overlayed polygons

Description

Function to get population data from a worldpop geotiff and geounit shapefile This function extracts raster values for overlayed polygons

Usage

download_worldpop_agetifs(
  country = "BGD",
  year = "2020",
  save_dir = "raw_data",
  cores = 4,
  overwrite = FALSE
)

Arguments

country

ISO3 of country of interest. The default is "BGD" (Bangladesh).

year

Year of population data (2000 to 2020). The default is 2020.

save_dir

directory where to save geotiff files. The default is "raw_data". If the directory name does not exist, it will be created automatically.

cores

number of cores to parallelize over. The default is 4.

overwrite

logical, if the files to download exist in save_dir should they be overwritten? The default is FALSE.

Value

file names of the geotiffs downloaded and saved.

References

WorldPop (https://www.worldpop.org/geodata)


HopkinsIDD/globaltoolboxlite documentation built on Jan. 12, 2024, 5:49 a.m.