Examples

The code chunks below shows how to query the Wage and Hour Division datasets available. For official documentation go to: https://developer.dol.gov/wage-and-hour-division/

WHD Compliance

library(dolr)

# This queries WHD Compliance datasets. 
# This gets the sheet associated with retail.
kable(head(str_trunc(dol_whd(dataset = 3, sheet = 4), 10, ellipsis = "..."))[1:7])

Wage and Hour Publications System


# This queries the Wage and Hour Publications System 
# This get the sheet associated with: PublicationsView
dol_whd(dataset = 2, sheet = 1)

Datasets and Sheets

Datasets Sheets
  1. Farm Labor Contractor and Farm Labor Contractor Employee
  1. Farm Labor Contractors
  1. Farm Labor Contractor Employees
  1. Wage and Hour Publications System
  1. PublicationsView
  1. DocumentsView
  1. WHD Compliance
  1. full
  1. foodservice
  1. hospitality
  1. retail