nhgisread | R Documentation |
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).
nhgisread(
datafile,
codebookfile = gsub("\\.csv", "_codebook.txt", datafile),
folder = getwd()
)
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() |
Returns a named list: data, contextfields, fields, tables, geolevel, years, dataset
nhgis()
which uses this, nhgisreadcodebook()
for reading codebook files,
get.acs()
, get.datafile.prefix()
, datafile()
, geofile()
, get.zipfile.prefix()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.