This is a tutorial of the functionality in globaltoolboxlite
to work with data from WorldPop.
To use worldpop geotiffs to produce population age distributions. Users need to provide their own shapefiles. All files from worldpop are downloaded with the functions below.
library(tidyverse) library(globaltoolboxlite)
library(tidyverse) library(globaltoolboxlite) filenames <- download_worldpop_agetifs(country="BGD", year="2020", save_dir="raw_data", cores=4) age_pop_data <- load_worldpop_age(shp="raw_data/BGD/bgd_admbnda_adm2_bbs_20180410/bgd_admbnda_adm2_bbs_20180410.shp", country="BGD", year="2020", save_dir="raw_data", cores=4) age_pop_10yr <- convert_wp_10yr(age_pop_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.