read.acs(filename, endyear = "auto", span = "auto", acs.units = "auto",
geocols = "auto", skip = 1)
At present, read.acs
is somewhat limited, and much work needs
to be done to improve import of data. Currently, the function expects
the first four columns of filename to include geographic headers (this
can be overidden through the geocols
option), and by default
skips the first row of data (which usually contains the Census
Bureau's non-descriptive table codes). Column names are extracted
from the second row of the file, as would normally happen with
read.csv(skip=1)
. When no other values are provided,
read.acs
will attempt to determine endyear and span from the
filename.
(The Census Bureau is also in the process of converting from "legacy" FactFinder to "FactFinder2," which has introduced additional confusion about the exact export format to use as a standard. Future versions are intended to resolve/avoid this problem.)