Filter out observations that occur during heat stress events
filter_out_heat_stress_events_single.Rd
Filter out observations that occur during heat stress events
Arguments
- dat
Data frame with at least three columns:
TIMESTAMP
(must be possible to convert to POSIXct),DEPTH
, andVALUE
. If columnVARIABLE
is included, it must have one unique entry. May also include columns with grouping variables passed to...
. Other columns will be ignored.- heat_threshold
The threshold for heat stress. Default is
heat_threshold = 18
). Every observation aboveheat_threshold
triggers ann-hour
heat stress interval.- n_hours
Length of heat stress interval in hours (default is
n_hours = 24
).
Details
Filters out observations that occur during heat stress events, as
defined by identify_heat_stress_events()
.
This function only works for a single STATION
. For multiple
STATION
s, use filter_out_heat_stress_events()
.
Every observation that exceeds the threshold has a corresponding 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. Heat stress events do not overlap, but they may end and start on consecutive timestamps.