beforeAfterMax: Before, after event maximum.

Description Usage Arguments Value Author(s)

View source: R/beforeAfterMax.R

Description

A function to determine which observations within an event are before and after the maximum of the event.

Usage

1
beforeAfterMax(eventCount, event_steps_till_max, event_length)

Arguments

eventCount

A vector indicating events. The eventCounts of findEvents.

event_steps_till_max

A vector of length max(eventCount) with the number of time steps until the maximum of each event. See eventSummary.

event_length

A vector of length max(eventCount) with the length of each event. See eventSummary.

Value

A vector indicating if samples are before or after the maximum of each event. Non event flow is represnted by 0's.

Author(s)

Jason Lessels jlessels@gmail.com


hydroEFS documentation built on May 2, 2019, 4:58 p.m.