load_population_age.impl: Load Population by age

View source: R/geography.r

load_population_age.implR Documentation

Load Population by age

Description

Load popuplation data by 5-year (or multiple) age group & sex

Usage

load_population_age.impl(
  loader_type,
  geo,
  year,
  age.breaks = NULL,
  type = NULL,
  country = NULL,
  ...
)

Arguments

loader_type

type of loader to use

geo

geographic level, if null, return by age only population

year

year of the population

age.breaks

used to create age categories (from 5-year categories)

type

feature of geographic zone to test using geo_is_type()

country

country to get population (only for platform handling country column, see platform_options)

...

extra parameter

Details

3 loaders are availables :

db

Database loader

file

File for all the platform

country_file

File by country, this require the platform variable "country" to be defined to the country to use

Value

data.frame('all','male','female','age.cat') for the given year

See Also

Other geography: geo_base_level(), geo_base_table(), geo_definition(), geo_hierarchy(), geo_is_type(), geo_level_nav(), geo_level_table(), geo_level(), get_geo_join(), load_geo_zone(), load_population()


cturbelin/ifnBase documentation built on Nov. 5, 2023, 12:54 p.m.