readers: GLP Readers

readersR Documentation

GLP Readers

Description

Read a folder of files to a data frame

Usage

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")

Arguments

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 FIPS, MSA, or tract

additional_geogs

Additional geographies to be included in the final data frame.

Value

A data frame subset to peers

Functions

  • 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.

Examples

acs_time("bach_plus", additional_geogs = "21067")


greaterlouisvilleproject/glptools documentation built on Feb. 9, 2025, 11:21 a.m.