readers | R Documentation |
Read a folder of files to a data frame
any_time(folder, starting_year = 2005, skip = 0, col_types = NULL, read_fxn)
acs_time(folder, geog = "FIPS", starting_year = 2005, additional_geogs = "")
brfss_time(folder)
business_time(folder, starting_year = 2004)
insurance_time(directory = "", starting.year = 2008)
unemployment_time(folder, starting_year = 2000)
wonder_time(folder, geog_type = "FIPS")
folder |
A path to a folder containing files. Years are assigned based on the file order, so the alphabetical order should match the chronological order. |
starting_year |
The first year for which there is data. |
skip |
Number of lines to skip from the top of the file |
col_types |
Types of columns to pass to the reader functions |
read_fxn |
Reader function |
geog |
The geographic level of the data, usually |
additional_geogs |
Additional geographies to be included in the final data frame. |
A data frame subset to peers
any_time()
: Reads in a folder of data
acs_time()
: Reads in a folder of ACS data
brfss_time()
: Reads in a folder of BRFSS data
business_time()
: Reads in a folder of County Business Pattern data
insurance_time()
: Reads in a folder of SAIHI data
unemployment_time()
: Reads in a folder of CPS unemployment data
wonder_time()
: Read in CDC Wonder data
Each file in the folder should be named according to the FIPS code of the data.
acs_time("bach_plus", additional_geogs = "21067")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.