getADAPSData: Function to return adaps_data_all df from NWISWeb or...

View source: R/getADAPSData.R

getADAPSDataR Documentation

Function to return adaps_data_all df from NWISWeb or previously retrieved RDB files

Description

This function accepts an NWIS gage site id, an NWIS precip site id, a StartDate, an EndDate, a timezone and file names as needed

Usage

getADAPSData(siteNo, StartDt, EndDt, precipSite, dataFile = "", tzCode = "")

Arguments

siteNo

NWIS gaging station id

StartDt

a date to start data pulls

EndDt

a date to end data pulls

precipSite

NWIS precipitation station id

dataFile

string of data file path and name

tzCode

a timezone specification for the data

Value

adaps_data_all data frame containing merged ADAPS data for the requested site and date range

Examples

## Not run: 
siteNo <- "424421077495301"
StartDt <- '2016-02-03'
EndDt <- '2016-02-03'
precipSite <- "424421077495301"
tzCode <- "America/Jamaica"
adaps_data_all <- getADAPSData(siteNo,StartDt,EndDt,precipSite,tzCode=tzCode)

## End(Not run)

USGS-R/SampleSplitting documentation built on Oct. 18, 2022, 9:19 a.m.