Learn R Programming

RWDataPlyr (version 0.6.5)

getTraceSum: Get the annual sum for each trace

Description

Get the annual sum for each trace

Usage

getTraceSum(rdfXTS, yearType)

Value

an XTS object with the selected slot annual sum

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)

Examples

Run this code
pe <- RWDataPlyr:::rdfSlotToXTS(keyRdf, 'Mead.Pool Elevation')
peWY <- RWDataPlyr:::getTraceSum(pe, 'WY')

Run the code above in your browser using DataLab