View source: R/postCorrection.R
| postCorrection | R Documentation |
Process/Correct the paired rainfall-runoff events identified based on two different methods
postCorrection(events, method = "remove duplicates")
events |
Data frame. Paired rainfall-runoff events. |
method |
Character string. Correction method want to be applied. Can be either "remove duplicates" or "shift duplicates". |
If method is "remove duplicates" the function searches for duplicated rainfall and runoff events and just keeps the first event. If a rainfall or runoff event ends after another event strats, the function adjusts the start of the second event. If the method is "shift duplicates", the function removes any runoff events which are embedded of other runoff events. Moreover, in this case, the function adjusts the start of any runoff event which starts before the previous runoff event ends.
A data frame of corrected events.
pairEvents, plotPairs
## Not run:
# Example usage
rain_events <- eventPOT(dataLoch, threshold = 1, min.diff = 1)
flow_events <- eventMaxima(dataBassRiver, delta.y = 200, delta.x = 1, threshold = 0)
paired_events <- pairEvents(rain_events, flow_events, lag = 5, type = 1)
corrected_events <- postCorrection(paired_events, method = "remove duplicates")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.