View source: R/worldpop_data.R
convert_wp_agegroups | R Documentation |
Function to transform population data from a worldpop age groups to user-defined age groups
convert_wp_agegroups(age_pop_data, age_groups = seq(0, 80, 5), max_age = 110)
age_pop_data |
data pulled from worldpop using 'load_worldpop_age' |
age_groups |
lower age limit of user-defined age groups. For 5 year age groups, this would be 0, 5, 10, etc. |
max_age |
max age to include (default is 100) |
long age population data by admin level 2, in user-defined age groups
WorldPop (https://www.worldpop.org/geodata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.