The transform filters the MSHA data for the closed coal mine criteria, then merges on the Census tract for each record and all adjacent Census tracts
Maybe the CRS transform here isn't the best way to do this
Found errors in MSHA data that might have impact:
Lat, lon coordinates don't actually correspond to the state listed for the record. This is why some of the states are incorrect when overlapped with the Census geographies (this is mentioned in the CRA report as well).
Multiple records for the same mine (lat, lon coordinates + coal/metal type are the same) with different operational statuses (one record for still active, one for abandoned)
Missing lat, lon coordinates
To Do:
[ ] Add check for mines that are the same lat, lon coordinates but which have different operating statuses. Can be a switch to toggle to see how many mines are excluded if a "campus" of mines still has some active mines
[ ] Impute census tracts of missing lat, lon coordinate mines. Or write up a comment about this.
Preliminary MSHA extract and transform step.
Found errors in MSHA data that might have impact:
To Do: