Get a data.frame (in long format) of population by age for multiple countries

age_df_countries(countries)

Arguments

countries

A character string or a vector of character containing the names of the countries for which to return contact data

Value

A data.frame (in long format) with 3 columns:

  • country: the country name

  • age: the age group

  • population: the number of people in this age group

Examples

age_df_countries(c("Austria", "Belgium"))
#>     country      age population
#> 181 Austria  [00,05)     420129
#> 182 Austria  [05,10)     413258
#> 183 Austria  [10,15)     407418
#> 184 Austria  [15,20)     427882
#> 185 Austria  [20,25)     490270
#> 186 Austria  [25,30)     583279
#> 187 Austria  [30,35)     590607
#> 188 Austria  [35,40)     600221
#> 189 Austria  [40,45)     556170
#> 190 Austria  [45,50)     617300
#> 191 Austria  [50,55)     716265
#> 192 Austria  [55,60)     699785
#> 193 Austria  [60,65)     577840
#> 194 Austria  [65,70)     463005
#> 195 Austria  [70,75)     412613
#> 196 Austria  [75,80)     368120
#> 197 Austria  [80,85)     262787
#> 198 Austria  [85,90)     144528
#> 199 Austria  [90,95)      73927
#> 200 Austria [95,100)      26792
#> 321 Belgium  [00,05)     659696
#> 322 Belgium  [05,10)     675719
#> 323 Belgium  [10,15)     680427
#> 324 Belgium  [15,20)     643220
#> 325 Belgium  [20,25)     669644
#> 326 Belgium  [25,30)     740608
#> 327 Belgium  [30,35)     769770
#> 328 Belgium  [35,40)     774709
#> 329 Belgium  [40,45)     756669
#> 330 Belgium  [45,50)     765230
#> 331 Belgium  [50,55)     791316
#> 332 Belgium  [55,60)     804893
#> 333 Belgium  [60,65)     736126
#> 334 Belgium  [65,70)     637315
#> 335 Belgium  [70,75)     559926
#> 336 Belgium  [75,80)     385491
#> 337 Belgium  [80,85)     317076
#> 338 Belgium  [85,90)     210456
#> 339 Belgium  [90,95)      96764
#> 340 Belgium [95,100)      29162