# NOT RUN {
library(tidyqwi)
# One state, one year
nc_qwi <- get_qwi(years = "2010",
states = "11",
geography = "county",
apikey = census_key,
endpoint = "rh",
variables = c("sEmp", "Emp"), all_groups = FALSE,
industry_level = "2", processing = "sequential")
# Multiple states. multiple years
qwi_multi_year <- get_qwi(years = c("2010", "2011", "2012"),
states = c("NC", "SC"),
geography = "county",
apikey = census_key,
endpoint = "rh",
variables = c("sEmp", "Emp"), all_groups = FALSE,
industry_level = "2", processing = "sequential")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab