View source: R/count_degree_days.R
count_degree_days | R Documentation |
Count number of degree-days
count_degree_days(
dat,
...,
growing_days = NULL,
heat_threshold = 18,
n_hours = 24,
trend_threshold = 4,
superchill_threshold = -0.7,
max_season = 540,
full_season = TRUE,
rm_gap_days = FALSE,
gap_length = 2,
gap_warning = 6,
quiet = TRUE
)
dat |
Data frame with at least three columns: |
... |
Additional columns in |
growing_days |
Optional dataframe including columns |
heat_threshold |
The threshold for heat stress. Default is
|
n_hours |
Length of heat stress interval in hours (default is
|
trend_threshold |
The threshold for "trending up". Default is
|
superchill_threshold |
The threshold for "superchill". Default is
|
max_season |
The length of the growing season in months for groups that
have no temperature observations below |
full_season |
Logical argument. The default, If |
rm_gap_days |
Logical argument indicating whether to remove days with data gaps when counting n_growing_days. |
gap_length |
The length of time in hours to consider a sampling gap. Default is gap_length = 2 hours, which is twice the sampling interval of the least frequent sensor. The total sample gap length (sum of all sample gaps) is subtracted from the number of stocked days to calculate the number of growing days. |
gap_warning |
The length of time in hours to consider a substantial
sampling gap. A warning can be printed if any gaps exceed this duration.
Default is |
quiet |
Logical argument to suppress Warning message when gap lengths
exceed |
Degree-days = average temperature over n days * n days
n is the number of days suitable for growth (from
count_growing_days()
).
Results are grouped by SEASON
, DEPTH
, and ...
.
Returns a tibble with columns:
Danielle Dempsey
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.