R/get_chill_days.R

Defines functions get_chill_days

Documented in get_chill_days

get_chill_days <-
function(Tmean, Tbase) {
  chill_days <- rep(0, length(Tmean))
  chill_days[Tmean < Tbase] <- 1
  return(cumsum(chill_days))
}

Try the phenModel package in your browser

Any scripts or data that you put into this service are public.

phenModel documentation built on Aug. 2, 2019, 5:05 p.m.