getTraceMax: Get the annual maximum for each trace

View source: R/xts_helperFunctions.R

getTraceMaxR Documentation

Get the annual maximum for each trace

Description

Get the annual maximum for each trace

Usage

getTraceMax(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 maximum

Examples

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


BoulderCodeHub/RWDataPlyr documentation built on May 8, 2023, 3:55 a.m.