getTraceSum: Get the annual sum for each trace

Description Usage Arguments Value Examples

View source: R/xts_helperFunctions.R

Description

Get the annual sum for each trace

Usage

1
getTraceSum(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 sum

Examples

1
2
pe <- RWDataPlyr:::rdfSlotToXTS(keyRdf, 'Mead.Pool Elevation')
peWY <- RWDataPlyr:::getTraceSum(pe, 'WY')

RWDataPlyr documentation built on April 17, 2020, 9:06 a.m.