getTraceAvg {RWDataPlyr} | R Documentation |
Get the average annual value for each trace
Description
Get the average annual value for each trace
Usage
getTraceAvg(rdfXTS, yearType)
Arguments
rdfXTS |
XTS object returned by |
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
pe <- RWDataPlyr:::rdfSlotToXTS(keyRdf, 'Mead.Pool Elevation')
peWY <- RWDataPlyr:::getTraceAvg(pe, 'WY')
[Package RWDataPlyr version 0.6.4 Index]