laus_trend | R Documentation |
Fetch monthly LAUS data for a list of locations over a given time period, modeled after blscrapeR::bls_api
. Requires a BLS API key.
laus_trend(
names = NULL,
startyear,
endyear,
state = "09",
measures = "all",
annual = FALSE,
verbose = TRUE,
key = NULL
)
names |
A character vector of place names to look up, either towns and/or counties. |
startyear |
Numeric; first year of range |
endyear |
Numeric; last year of range |
state |
A string: either name or two-digit FIPS code of a US state. Required; defaults |
measures |
A character vector of measures, containing any combination of |
annual |
Logical: whether to include annual averages along with monthly data. Defaults |
verbose |
Logical: if |
key |
A string giving the BLS API key. If |
A data frame, slightly cleaned up from what the API returns.
## Not run:
laus_trend(c("Connecticut", "New Haven", "Hamden"), 2014, 2017, annual = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.