if (FALSE) { # Sys.getenv("CENSUS_API_KEY") != ""
# Census API key required
# For one year-state entry
find_svi(
year = 2019,
state = "AZ",
geography = "county"
)
# For multiple year-state pairs
## All ZCTAs for 2017-AZ; 2017-DE; and 2018-DC
year <- c(2017, 2017, 2018)
state <- c("AZ", "DE", "DC")
info <- data.frame(year, state)
find_svi(
year = info$year,
state = info$state,
geography = "zcta"
)
}
Run the code above in your browser using DataLab