qcew_api | R Documentation |
Return data from the QCEW API. This is separate from the main BLS API and returns quarterly data sliced by industry, area or size. Industry is identified by NIACS code and area is identified by FIPS code. A key is not required for the QCEW API.
qcew_api( year = c(format(Sys.Date(), "%Y")), qtr = "1", slice = NULL, sliceCode = NULL, ... )
year |
These data begin in 2012 and go to the most recent complete quarter. The argument can be entered as an integer or a character. The default is 2012. |
qtr |
Quarter: This can be any integer between 1 and 4, or "A" for annual. The argument can be entered as an integer or a character. The default is 1, which returns the first quarter. |
slice |
The slice should be one of the three data slices offered by the API; "industry", "area", or "size." |
sliceCode |
The slice codes depend on what slice you select. For example, if you select the "area" slice,
your |
... |
additional arguments |
A tibble from the BLS API.
https://data.bls.gov/cew/doc/access/csv_data_slices.htm
## Not run: # A request for the employment levels and wages for NIACS 5112: Software Publishers. dat <- qcew_api(c(format(Sys.Date(), "%Y")), qtr="1", slice="industry", sliceCode=10) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.