convert_wp_agegroups: Function to transform population data from a worldpop age...

View source: R/worldpop_data.R

convert_wp_agegroupsR Documentation

Function to transform population data from a worldpop age groups to user-defined age groups

Description

Function to transform population data from a worldpop age groups to user-defined age groups

Usage

convert_wp_agegroups(age_pop_data, age_groups = seq(0, 80, 5), max_age = 110)

Arguments

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)

Value

long age population data by admin level 2, in user-defined age groups

References

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


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