get_industry: Get QCEW Data by Industry

Description Usage Arguments Value Examples

View source: R/qcew.R

Description

A function takes a year, quarter, and industry code and returns a data frame containing the associated industry data.

Usage

1
get_industry(year, qtr, industry)

Arguments

year

(character, or numeric) Possible values: "1990", "1991", ..., "2015".

qtr

(character, or numeric) Possible values: "1", "2", "3", "4", and "a" for annual average.

industry

(character, or numeric) Some industry codes contain hyphens. The CSV files use underscores instead of hyphens. So 31-33 becomes 31_33. Possible values: http://www.bls.gov/cew/doc/titles/industry/industry_titles.htm

Value

Return a tibble, i.e., modern data frame.

Examples

1
2
3
4
5
## Not run: 
construction = qcewAPI::get_industry("2013", "1", "1012")
construction = qcewAPI::get_industry(2013, 1, 1012)

## End(Not run)

jjchern/qcewAPI documentation built on May 19, 2019, 11:39 a.m.