fun.GageData | R Documentation |
This a wrapper function for the package dataRetrieval to get USGS data. Daily means are the default data type.
fun.GageData(
fun.myData.SiteID,
fun.myData.Type = "Gage",
fun.myData.DateRange.Start,
fun.myData.DateRange.End,
fun.myDir.export = getwd(),
fun.myTZ = ContData.env$myTZ
)
fun.myData.SiteID |
Station/SiteID (can be a vector). |
fun.myData.Type |
data type is "Gage". |
fun.myData.DateRange.Start |
Start date for requested data. Format = YYYY-MM-DD. |
fun.myData.DateRange.End |
End date for requested data. Format = YYYY-MM-DD. |
fun.myDir.export |
Directory for export data. Default is current working directory. |
fun.myTZ |
Timezone for requested gage. Default is in env.UserDefinedValues.R. Can also be set with Sys.timezone(). |
Gage height is converted to water level for compatibility with HOBOware output.
Returns a csv file to specified directory with the requested daily mean data. During the data retrieval a summary is output to the console.
#Not intended to be accessed independant of function ContDataQC().
fun.GageData("01187300","Gage","2013-01-01","2013-12-31",getwd(),"","")
# with optional variable left blank
fun.GageData("01187300","Gage","2013-01-01","2013-12-31")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.