getTraceAvg: Get the average annual value for each trace

Description Usage Arguments Value Examples

View source: R/xts_helperFunctions.R

Description

Get the average annual value for each trace

Usage

1
getTraceAvg(rdfXTS, yearType)

Arguments

rdfXTS

XTS object returned by rdfSlotToXTS

yearType

String 'CY' or 'WY' denoting a Calendar Year (Jan-1 to Dec-31) or Water Year (Oct-1 to Sep-30)

Value

an XTS object with the selected slot annual average

Examples

1
2
3
4
5
## Not run: 
pe <- rdfSlotToXTS(keyRdf, 'Powell.Pool Elevation')
peWY <- getTraceAvg(pe, 'WY')

## End(Not run)

rabutler/RWDataPlot documentation built on May 26, 2019, 8:51 p.m.