# NOT RUN {
# These examples are taken from the sample code examples found at:
# <https://www.bls.gov/cew/doc/access/data_access_examples.htm>
# Area Data Request
# Required parameters are:
# * year
# * quarter
# * area
# Example: Request the first quarter of 2017 for the state of Michigan
MichiganData <- blsQCEW('Area', year='2017', quarter='1', area='26000')
# }
# NOT RUN {
# Industry Data Request
# Required parameters are:
# * industry
# * quarter
# * year
# Example: Request Construction data for the first quarter of 2017
Construction <- blsQCEW('Industry', year='2017', quarter='1', industry='1012')
# Size Data Request
# * size
# * year
# Example: Request data for the first quarter of 2017 for establishments with
# 100 to 249 employees
SizeData <- blsQCEW('Size', year='2017', size='6')
# }
Run the code above in your browser using DataLab