I think that loading plyr after loading dply is causing R to crash. I removed the load of dplyr entirely since I don't use any dplyr specific functions in the current necessary operations. Created new file to build USGS stations to be located from wqp and previous 2012 usgs analysis. See comments in file for details.