Evaluation frost-free days and related metrics from daily climate records.
FFD(
d,
returnDailyPr = TRUE,
minDays = 165,
frostTemp = 32,
endSpringDOY = 182,
startFallDOY = 213
)
data.frame
with columns 'datetime' 'year', and 'value'; 'value' being daily minimum temperature, see details
optionally return list
with daily summaries
min number of days of non-NA data in spring | fall, required for a reasonable estimate of FFD
critical temperature that defines "frost" (same units as d$value
)
day of year that marks end of "spring" (typically Jan 1 – June 30)
day of year that marks start of "fall" (typically Aug 1 – Dec 31)
a data.frame
when a returnDailyPr = FALSE
, otherwise a list
with the following elements:
summary: FFD summary statistics as a data.frame
fm: frost matrix
Pr.frost: Pr(frost|day): daily probability of frost
The default frostTemp=32
is suitable for use with minimum daily temperatures in degrees Fahrenheit. Use frostTemp = 0
for temperatures in degrees Celsius.
# 11 years of data from highland meadows
data('HHM', package = 'sharpshootR')
x.ffd <- FFD(HHM, returnDailyPr = FALSE, frostTemp = 32)
str(x.ffd)
#> 'data.frame': 1 obs. of 10 variables:
#> $ ffd.50 : num 80
#> $ ffd.80 : num 70
#> $ ffd.90 : num 60
#> $ spring.50: num 165
#> $ spring.80: num 168
#> $ spring.90: num 169
#> $ fall.50 : num 245
#> $ fall.80 : num 238
#> $ fall.90 : num 228
#> $ n.yrs : num 6