Skip to contents

A wrapper on gsdd::gsdd() to get the Growing Season Degree Days for the longest growing season.

Usage

gsdd(x, min_length = 120, msgs = TRUE)

Arguments

x

A data frame with two columns date and temperature. date, which must be of class Date provides the dates and temperature which must be a numeric vector provides the mean daily water temperature in degrees centigrade.

min_length

A whole number of the minimum length to consider. Must be at least twice the window width but no more than 365. If NULL then set to be the difference between start_date and end_date (ignoring the year).

msgs

A flag specifying whether to provide messages.

See also

gsdd::gsdd(), gsdd() and gss().

Examples

gsdd(gsdd::temperature_data)
#> # A tibble: 1 × 2
#>    year  gsdd
#>   <int> <dbl>
#> 1  2019 3899.