Load population by sex and five-year age categories for years 2010 to 2018.
Use package czso and specifically function czso::czso_get_table(dataset_id = "130142")
to obtain the data and czso::czso_get_table_schema(dataset_id = "130142") to get the columns
description.
load_population_age(year = NA, area_type = NA)
load_population_age_col_explanations()for which the data should be obtained. Default value is NA, which means
all the years. Values from range (including both limits) 2010 - 2018 are accepted.
type of are for which the data should be obtained. Default value is NA,
which means all areas. Accepted values are in Description.
data.frame containg the requested data
The area_type can have values from following set:
"okresy"
"kraje"
"republika"
load_population_age: Load the data
load_population_age_col_explanations: Load description for columns
More detailed information about data can be found at the provider's website https://www.czso.cz/csu/czso/obyvatelstvo-k-3112-podle-pohlavi-v-obcich.