Missing dv data
Created by: chanse-ford
I'm trying to get daily discharge data from all streams in the Michigan Lower Peninsula. When I run the code to pull the data it seems like it gets most of it, but when I look at individual sites at a small timescale (a few months) I notice there seems to be missing data points. I've checked these sites at these times on the USGS website and the days missing are online. I'm not sure what's causing some of these data points to drop out. My code for pulling the data and separating out the lower peninsula is below. I've also included a picture showing some of the sites with missing data. The date range for the figure is Nov. 2011-June 2012.
start.date <- "2002-09-01"
end.date <- "2016-06-01"
dfMILP <- readNWISdata(stateCd = "MI", parameterCd = "00060", startDate = start.date, endDate = end.date, service = "dv", siteType = "ST",
siteStatus = "active")
dfMILP <- renameNWISColumns(dfMILP)
siteInfo <- attr(dfMILP, "siteInfo")
dfMILP <- subset(dfMILP, siteInfo$dec_lat_va <= 45.2744)
dfMILP <- subset(dfMILP, siteInfo$dec_lon_va >= -86.575)