Add Census variables to data frames.

add_census(
  data,
  variable,
  geography,
  year = 2010,
  by_name = FALSE,
  CENSUS_API_KEY = Sys.getenv("CENSUS_API_KEY")
)

Arguments

data

Data to add Census variables to

variable

Census variable(s) to add

geography

Geographic unit

year

Vintage

by_name

TRUE to use county name/census place name for matching

CENSUS_API_KEY

Census API key