getDrainageArea: Function to return the drainage area of a site from the...

Description Usage Arguments Value Examples

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

Description

This function accepts a url parameter that already contains the desired NWIS site. It returns a drain_area value.

Usage

1
  getDrainageArea(drain_url)

Arguments

drain_url

string containing the url for the retrieval

Value

drain_area a numeric value of the drainage area for a given site

Examples

1
2
3
4
drainage_url<-"http://waterservices.usgs.gov/nwis/site/?siteOutput=Expanded&site="
sites<-"02177000"
drain_url<-paste(drainage_url,sites,sep="")
getDrainageArea(drain_url)

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