gdd: Growing Degree Days Function

Description Usage Arguments Value Examples

View source: R/gdd.R

Description

This function calculates growing degree days (GDD) using the average of the daily maximum and minimum temperatures, a base temperature and a maximum base temperature

Usage

1
gdd(tmax, tmin, tbase, tbase_max)

Arguments

tmax

daily maximum temperature

tmin

daily minimum temperature

tbase

base temperature

tbase_max

maximum base temperature

Value

a numeric vector with GDD values

Examples

1
2
3
4
set.seed(25)
df <- data.frame(tmax=runif(100, 6, 10), tmin=runif(100, 4,6))

gdd(tmax = df$tmax, tmin = df$tmin, tbase = 5, tbase_max = 30)

Nowosad/pollen documentation built on March 22, 2018, 7:57 a.m.