Compute the growing degree day (GDD) using a base temperature against the mean daily temperature.
gdd_avg_r(base_temp, min_temp, max_temp, avg_temp, top_temp)
value for the base temperature to use for the growing degree day, default = 4°C
raster, rasterbrick or vector of the minimum daily temperature
raster, rasterbrick or vector of the maximum daily temperature
raster, rasterbrick or vector of the mean daily temperature
value for the maximum temperature beyond growing degree day are not accumulating, default = NULL
This function computes a rough estimate of GDD from the mean temperature without accounting from variation during the day. For a more refined method using a daily curve, use the BE method (Baskerville-Emin method) available with `gdd_be_r()`.