Skip to contents

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