parse_nhgis_codebook: Parse an NHGIS codebook

Description Usage Arguments Value Examples

Description

NHGIS provides historical census data with fields named, for example AA001. For each csv file it provides a plain text codebook which explains the meanings of these codes. This function parses those codebooks and returns a data frame which can be merged back into the dataset to get the meanings of the codes.

Usage

1

Arguments

filename

The path to an NHGIS codebook.

Value

A data frame with two columns code and meaning.

Examples

1
2
3
4
sample_codebook <- system.file("extdata",
                               "nhgis0024_ds17_1870_county_codebook.txt",
                               package = "mullenMisc")
parse_nhgis_codebook(sample_codebook)

lmullen/mullenMisc documentation built on May 21, 2019, 7:35 a.m.