Get the population of a country by age group and sex, as saved in the package
Source:R/fct_data.R
saved_pyramid.RdThe population pyramid of get_pyramid() without internet:
Eurostat's population on 1 January by five-year age group and sex
(demo_pjangroup) on the day the package was built, for the examples of the
charts and to work offline.
Value
A data frame with sex, age, year and value, the share of the
age group in the population of its sex, in percent, or NULL when the
package has no population pyramids.
Examples
head(saved_pyramid("EL"))
#> sex age year value
#> 1 Female 0-4 1961 8.437061
#> 2 Female 5-9 1961 8.563425
#> 3 Female 10-14 1961 8.626130
#> 4 Female 15-19 1961 7.775774
#> 5 Female 20-24 1961 9.485151
#> 6 Female 25-29 1961 9.410101