This function queries the US Department of Labor Wage and Hour Divisions Datasets. The datasets currently use V2 of DOL API.
dol_whd(dataset = 1, sheet = 1, key = Sys.getenv("DOL_KEY"))
There are currently 3 datasets to choose from. Specify the one you want with a number from 1-3.
Farm Labor Contractor and Farm Labor
Contractor Employee
Wage and Hour Publication System
WHD Compliance
For each dataset chosen, there are sub sheets within them. You must specify which sub-sheet you want.
The API key for this user. You must go to the DOL and sign up for an account and request for an API key.
A dataframe