View source: R/count_max_event_days.R
count_max_event_days | R Documentation |
Count the maximum number of days VALUE exceeds a threshold (above or below)
count_max_event_days(
dat,
threshold,
...,
less_than = TRUE,
summary_table = TRUE
)
dat |
Dataframe that must include columns VALUE (numeric) and TIMESTAMP
(POSIXct), and a column for each grouping variable in |
threshold |
Value to cross to trigger exceedance (exclusive) |
... |
Names of columns that should be used as grouping variables (not
quoted), e.g. |
less_than |
Logical argument. If |
summary_table |
Logical argument. If |
Returns summary table with maximum event duration for each grouping variable OR a table with all exceedance events for each grouping variable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.