acs.describe: Describe a field in the ACS PUMS data

Description Usage Arguments Value Examples

View source: R/acs.describe.R

Description

Extract the description of a field in the ACS PUMS data from the data dictionary. The description includes the column name (abbreviation), the field name (plain English), the factor levels and their descriptions for integer-coded categoricals or the range and description for numeric variables.

Usage

1
acs.describe(dd, field, max.len = NULL)

Arguments

dd

the data dict as a string

field

the ACS column name to extract

max.len

max length of description in words, default is all

Value

list with column name and description, levels and their definitions

Examples

1
2
3
4
5
# Integer-coded categorical field
acs.describe(data.dict16, 'TEN')

# Numeric field
acs.describe(data.dict16, 'NP', 25)

davidthaler/PUMSutils documentation built on July 13, 2019, 9:58 a.m.