Identify when VALUE first crosses below a threshold
identify_first_superchill.Rd
Identify when VALUE first crosses below a threshold
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.- ...
Additional columns in
dat
to use as grouping variables. Results are automatically grouped byDEPTH
.- superchill_threshold
The threshold for "superchill". Default is
superchill_threshold = -0.7
. The first observation belowsuperchill_threshold
triggers the end of the growing season for each group inDEPTH
and...
.
Value
Returns a tibble with the TIMESTAMP
for one minute before the
first time VALUE
goes below superchill_threshold
(for each
DEPTH
and group in ...
).
This TIMESTAMP
is passed to identify_growing_seasons()
to
denote the end of the growing season.
No row will be returned for groups for which VALUE
did not cross
superchill_threshold
.