Skip to content
Snippets Groups Projects
Commit 6e73c088 authored by Laura A DeCicco's avatar Laura A DeCicco
Browse files

Latest build.

parent 78a447ce
No related branches found
No related tags found
1 merge request!39Overhaul of function names. Move some functionality to EGRET.
......@@ -309,7 +309,7 @@ Site information is obtained from \url{http://waterservices.usgs.gov/rest/Site-T
\subsubsection{whatNWISData}
\label{sec:usgsDataAvailability}
%------------------------------------------------------------
To discover what data is available for a particular USGS site, including measured parameters, period of record, and number of samples (count), use the \texttt{whatNWISData} function. It is possible to limit the retrieval information to a subset of types (\texttt{"}dv\texttt{"}, \texttt{"}uv\texttt{"}, or \texttt{"}qw\texttt{"}). In the following example, we limit the retrieved Choptank data to only daily data. Leaving the \texttt{"}type\texttt{"} argument blank returns all of the available data for that site.
To discover what data is available for a particular USGS site, including measured parameters, period of record, and number of samples (count), use the \texttt{whatNWISData} function. It is possible to limit the retrieval information to a subset of services (\texttt{"}dv\texttt{"}, \texttt{"}uv\texttt{"}, or \texttt{"}qw\texttt{"}). In the following example, we limit the retrieved Choptank data to only daily data. Leaving the \texttt{"}service\texttt{"} argument blank returns all of the available data for that site.
<<getSiteExtended, echo=TRUE>>=
......@@ -317,7 +317,7 @@ To discover what data is available for a particular USGS site, including measure
# This pulls out just the daily data:
dailyDataAvailable <- whatNWISData(siteNumbers,
type="dv")
service="dv")
@
......@@ -721,9 +721,8 @@ library(dataRetrieval)
There are a few steps that are required in order to create a table in Microsoft\textregistered\ software (Excel, Word, PowerPoint, etc.) from an R dataframe. There are certainly a variety of good methods, one of which is detailed here. The example we will step through here will be to create a table in Microsoft Excel based on the dataframe tableData:
<<label=getSiteApp, echo=TRUE>>=
availableData <- whatNWISData(siteNumber)
dailyData <- availableData["dv" == availableData$service,]
dailyData <- dailyData["00003" == dailyData$statCd,]
availableData <- whatNWISData(siteNumber, "dv")
dailyData <- availableData["00003" == availableData$statCd,]
tableData <- with(dailyData,
data.frame(
......
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment