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
#> 145 Austria 00_04     420129
#> 146 Austria 05_09     413258
#> 147 Austria 10_14     407418
#> 148 Austria 15_19     427882
#> 149 Austria 20_24     490270
#> 150 Austria 25_29     583279
#> 151 Austria 30_34     590607
#> 152 Austria 35_39     600221
#> 153 Austria 40_44     556170
#> 154 Austria 45_49     617300
#> 155 Austria 50_54     716265
#> 156 Austria 55_59     699785
#> 157 Austria 60_64     577840
#> 158 Austria 65_69     463005
#> 159 Austria 70_74     412613
#> 160 Austria   75+     876154
#> 257 Belgium 00_04     659696
#> 258 Belgium 05_09     675719
#> 259 Belgium 10_14     680427
#> 260 Belgium 15_19     643220
#> 261 Belgium 20_24     669644
#> 262 Belgium 25_29     740608
#> 263 Belgium 30_34     769770
#> 264 Belgium 35_39     774709
#> 265 Belgium 40_44     756669
#> 266 Belgium 45_49     765230
#> 267 Belgium 50_54     791316
#> 268 Belgium 55_59     804893
#> 269 Belgium 60_64     736126
#> 270 Belgium 65_69     637315
#> 271 Belgium 70_74     559926
#> 272 Belgium   75+    1038949