View source: R/worldpop_data.R
download_worldpop_agetifs | R Documentation |
Function to get population data from a worldpop geotiff and geounit shapefile This function extracts raster values for overlayed polygons
download_worldpop_agetifs(
country = "BGD",
year = "2020",
save_dir = "raw_data",
cores = 4,
overwrite = FALSE
)
country |
ISO3 of country of interest. The default is |
year |
Year of population data (2000 to 2020). The default is 2020. |
save_dir |
directory where to save geotiff files. The default is |
cores |
number of cores to parallelize over. The default is 4. |
overwrite |
logical, if the files to download exist in |
file names of the geotiffs downloaded and saved.
WorldPop (https://www.worldpop.org/geodata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.