getPeakData: Function to return data from the NWISWeb peak values service

Description Usage Arguments Value Examples

View source: R/RProjects/HITHATStats/R/peakflow.R View source: R/peakflow.R

Description

This function accepts a sites parameter that contains the desired NWIS site. It returns a data frame containing peak instantaneous annual flow data for the site.

Usage

1
  getPeakData(sites)

Arguments

sites

string containing the site for the retrieval

Value

peakValues a data frame containing columns 'Date' and 'Discharge'

Examples

1
2
sites<-"02178400"
getPeakData(sites)

jlthomps/EflowStats documentation built on May 19, 2019, 12:48 p.m.