Functions - fetching

Functions to fetch data from APIs

laus_trend()

Fetch local area unemployment statistics (LAUS) data over time

multi_geo_acs()

Fetch an ACS table with multiple geography levels

multi_geo_decennial()

Fetch a decennial census table with multiple geography levels

qwi_industry()

Get employment counts and total payroll over time

Functions - survey & crosstabs

Functions to read, clean, and analyze DataHaven Community Wellbeing Survey crosstabs

collapse_n_wt()

Collapse survey groups and get weighted means

read_xtabs() read_weights()

Read crosstab data and weights

sub_nonanswers()

Remove non-answers and rescale percentage values

xtab2df()

Extract survey data and descriptions from crosstabs into a tidy data frame

Functions - analyzing and plotting

Functions to analyze or quickly plot data

adj_inflation()

Add inflation-adjusted values to a data frame

geo_level_plot()

Quickly make a ggplot to view data by geographic level

label_acs()

Quickly add the labels of ACS variables

label_decennial()

Quickly add the labels of decennial variables

quick_map()

Quickly create a choropleth sketch

Datasets - reference

Reference datasets, lookup tables, and crosswalks

acs_vars22

Variable labels from the 2022 ACS

basic_table_nums

Basic ACS table numbers

cb_avail

Tables available from the Census Bureau API

ct5_clusters

Five Connecticuts clusters

decennial_vars20 decennial_vars10

Variable labels from the Decennial Census

ext_table_nums

Extended ACS table numbers

laus_codes

LAUS area codes

msa

Names and GEOIDs of regional MSAs

naics_codes

NAICS industry codes

new_haven_tracts bridgeport_tracts stamford_tracts hartford_tracts new_haven_tracts19 bridgeport_tracts19 stamford_tracts19 hartford_tracts19

City neighborhoods by tract

occ_codes

Census occupation codes

proxy_pumas

Proxy PUMAs

regions

Regions of Connecticut

school_dists

School districts by town

tract2town

Tract to town crosswalk

village2town

Village to town lookup

xwalk

CT crosswalk

zip2town

Zip to town lookup

Datasets - examples

Datasets used for examples in vignettes, package docs, & testing

cws_demo

CWS demo data

gnh_tenure

ACS demo data - tenure

Shapefiles

Shapefiles in sf format

bridgeport_sf hartford_sf new_haven_sf stamford_sf

Neighborhood shapefiles of Connecticut cities

town_sf

Connecticut town shapefile

tract_sf tract_sf19

Connecticut tract shapefile

Misc. / utilities

Miscellaneous functions

batch_csv_dump()

Write a list of data frames to CSV and keep it movin'

fix_cogs()

Fix names of COGs

jenks()

Quickly cut a vector with the Jenks/Fisher algorithms

town_names()

Clean up town names as returned from ACS

separate_acs()

Separate labels given to ACS data