View source: R/identify_heat_stress_events.R
identify_heat_stress_events | R Documentation |
Identify start and end of non-overlapping heat stress events
identify_heat_stress_events(dat, ..., heat_threshold = 18, n_hours = 24)
dat |
Data frame with at least three columns: |
... |
Additional columns in |
heat_threshold |
The threshold for heat stress. Default is
|
n_hours |
Length of heat stress interval in hours (default is
|
Every observation that exceeds the threshold is assigned a heat
stress interval (TIMESTAMP
of the observation + n_hours). Intervals
may overlap with one or more other intervals.
Heat stress events are denoted by the beginning and end of overlapping
intervals for each DEPTH
and group in ...
. Heat stress events
do not overlap, but they may end and start on consecutive
TIMESTAMP
s.
Returns a tibble with columns: ...
, DEPTH
,
event_id
, stress_start
and stress_end
.
Note: Events for a given depth do not overlap, but event_end
and
event_start
may be consecutive timestamps.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.