View source: R/calculate_event_duration.R
calculate_event_duration | R Documentation |
Calculate the duration of time VALUE exceeds a threshold (above or below)
calculate_event_duration(
dat,
threshold,
...,
less_than = TRUE,
summary_table = TRUE
)
dat |
Data frame with columns |
threshold |
Threshold value that triggers start of event. Event starts
when |
... |
Grouping variables. Must be name(s) of column(s) in |
less_than |
Logical argument. If |
summary_table |
Logical argument. If |
Returns a data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.