This function matches the open complaints to the state in which the complaint occured.
1 | infer_states(osha)
|
The method used is to take the closed complaints (which have address data) and the OSHA office IDs and to create a lookup table from OSHA office ID => state.
Then using said lookup table, code the open complaints.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.