nhgisread: Read NHGIS.org ACS Data Files and Codebooks

View source: R/nhgisread.R

nhgisreadR Documentation

Read NHGIS.org ACS Data Files and Codebooks

Description

Helper function used by nhgis() to read downloaded and unzipped csv and txt files obtained from NHGIS.org, with US Census Bureau data from the American Community Survey (ACS).

Usage

nhgisread(
  datafile,
  codebookfile = gsub("\\.csv", "_codebook.txt", datafile),
  folder = getwd()
)

Arguments

datafile

Names of files

codebookfile

Optional name(s) of codebook files. Default is to infer from datafile

folder

Optional path where files are found. Default is getwd()

Value

Returns a named list: data, contextfields, fields, tables, geolevel, years, dataset

See Also

nhgis() which uses this, nhgisreadcodebook() for reading codebook files, get.acs(), get.datafile.prefix(), datafile(), geofile(), get.zipfile.prefix()


ejanalysis/ACSdownload documentation built on Jan. 18, 2025, 7:43 a.m.