get_census_years: Get years in which censuses were conducted

View source: R/extract_DemoData_tier1_post_process.R

get_census_yearsR Documentation

Get years in which censuses were conducted

Usage

get_census_years(x)

## S3 method for class 'list'
get_census_years(x)

## S3 method for class 'numeric'
get_census_years(x)

## S3 method for class 'character'
get_census_years(x)

Arguments

x

A numeric location code or location name as a character string, or a list of the form returned by DDextract_ccmppWPPinputs_tier1.

Details

Years in which censuses were conducted are provided in data("census_years") for many countries. Ranges of the form "xxxx-yyyy" (e.g., "2000-2005") are possible if a rolling population count was conducted over several years. France, for example, has conducted rolling censuses.

Value

A character vector of years.

Author(s)

Mark Wheldon

References

United Nations (2021). Standard country or area codes for statistical use (M49). Department of Economic and Social Affairs, Statistics Division. https://unstats.un.org/unsd/methodology/m49/ (retrieved 1 April 2021).

See Also

Other DDSQL_census_years: parse_census_years_ranges()


markalava/ccmppWPP documentation built on April 21, 2022, 12:36 a.m.