View source: R/identify_heat_stress_intervals.R
identify_heat_stress_intervals | R Documentation |
Identify n-hour intervals beginning when a threshold is exceeded
identify_heat_stress_intervals(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
|
Returns a data frame with columns: ...
, DEPTH
,
interval_start
and interval_end
. interval_start
indicates the beginning of each heat stress interval, i.e, the
TIMESTAMP
of all observations where VALUE
is greater than or
equal to heat_threshold
. interval_end
identifies the end of
the heat stress interval, i.e., interval_start
+ n_hours.
Note: intervals may overlap with previous interval(s).
Other heat stress:
filter_out_heat_stress_events()
data(string_data)
dat <- string_data[which(string_data$VARIABLE == "Temperature"), ]
stress_intervals <- identify_heat_stress_intervals(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.