| ordinary_events | R Documentation |
event_separationThis function calculates the rolling sum of values in the provided data over a specified duration and identifies the events with the highest sum within the defined time intervals. It is useful for detecting significant events based on aggregated values over time.
ordinary_events(x, duration, na.rm = TRUE)
x |
A list containing at least the following elements (usually the
output of function
|
duration |
Numeric. The duration in minutes for which maxima shall be calculated. |
na.rm |
Logical. If |
Returns a tibble with individual rainfall events that can be
used as input for functions
fsmev, fmev, ftmev.
## Not run:
# Example usage
x <- list(
data = data.frame(val = runif(100),
groupvar = seq.POSIXt(Sys.time(),
by = "10 min",
length.out = 100)
),
ts_res = 10,
fromto = data.frame(from = c(1, 51), to = c(50, 100))
)
duration <- 30
result <- ordinary_events(x, duration)
print(result)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.