pks.dur: Calculate the inter-event duration

Description Usage Arguments Value Author(s) Examples

View source: R/pks.dur.R

Description

This function calculates duration (in days) between flow peaks.

Usage

1
pks.dur(Peaks)

Arguments

Peaks

Output from pks.

Value

Returns a numeric vector containing the duration (in days) between peaks over threshold from pks. The "times" attribute contains the calendar year date of the earlier peak. The "names" attribute contains the hydrologic year and the day (1-366) of the hydrologic year.

Author(s)

Jennifer Dierauer

Examples

1
2
3
4
data(cania.sub.ts)
res1 <- pks(cania.sub.ts)
res2 <- pks.dur(res1)
res3 <- screen.metric(res2, "Inter-Event Duration (days)")

Example output

If singularity problems occur divide data by a factor, perhaps 1000 

FlowScreen documentation built on May 2, 2019, 1:09 p.m.