Description Usage Arguments Value See Also Examples
Finds independent events greater than or less than a specified criterion. High (or low) -flow days occurring on consecutive days are considered part of one event. This function can be used to find events exceeding 2- or 10- year return levels (as calculated in lp3Events
function, for example), or to find residual flows of a certain magnitude.
1 | independentEvents(cutoff.val, data, data.column, below.cutoff=FALSE)
|
cutoff.val |
Numeric specifying event criterion. |
data |
Data matrix or data frame with one column of streamflow data. |
data.column |
Numeric; specifies column in which to look for events. |
below.cutoff |
Logical. TRUE to find events less than the |
A data.frame
with columns
events.starts |
Index of event start. |
events.ends |
Index of event end. |
events.duration |
Length (days) of event. |
extreme.this.events |
Maximum or minimum flow for this event. |
ind.extreme |
Index of maximum or minimum flow for this event. If extreme is not unique, the chronologically first index is given. |
... |
All columns of original data, corresponding to max or min flow. These columns will have the same column names as the original data. |
duplicates |
0 if the extreme is unique, 1 if it is not unique. |
1 2 3 4 5 6 7 | data(sycamore)
syc.sf<-asStreamflow(sycamore)
#find 10-year flood
q10<-lp3Events(syc.sf)$Q10
#find all events greater than 10-year flood
independentEvents(q10,syc.sf$data, data.col=8 , below.cutoff=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.