Learn R Programming

HMDHFDplus (version 2.0.6)

getHFCcountries: getHFCcountries a function to grab all present country codes used in the Human Fertility Collection

Description

The function returns a list of population codes used in the Human Fertility Collection (HFC). Optionally, it also can return a data.frame with both the full population name and short code.

Usage

getHFCcountries(names = FALSE)

Value

either a character vector of short codes (default) or a data.frame of country names and codes.

Arguments

names

logical. Default FALSE Should a data.frame matching full country names to short codes be given?

Examples

Run this code
if (FALSE) {
getHFCcountries()
getHFCcountries(names = TRUE)
}

Run the code above in your browser using DataLab