powered by
This function gathers daily average streamgauge data for a group of gauges from USGS NWIS
getStreamflow(start, end, gages)
start date in format 'YYYY-MM-DD'
end date in format 'YYYY-MM-DD'
list of USGS gauge numbers
list of:
list of gauge site names
list of gauge numbers
xts of daily average discharge (cfs)
flow <- getStreamflow('2000-01-01', '2010-12-31', c('05551540', '05552500'))
Run the code above in your browser using DataLab