View source: R/filter_out_heat_stress_events_single.R
filter_out_heat_stress_events_single | R Documentation |
Filter out observations that occur during heat stress events
filter_out_heat_stress_events_single(dat, heat_threshold = 18, n_hours = 24)
dat |
Data frame with at least three columns: |
heat_threshold |
The threshold for heat stress. Default is
|
n_hours |
Length of heat stress interval in hours (default is
|
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.
Returns dat
, filtered to remove observations that occur during
heat stress events.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.