# default method
data("innlandet", package = "climatrends")
# equation b is set by default
# where tmin and tmax are adjusted if below tbase
late_frost(innlandet$tmax,
innlandet$tmin,
dates = innlandet$date,
tbase = 2,
tfrost = -2)
# slightly different series if equation a is used
late_frost(innlandet$tmax,
innlandet$tmin,
dates = innlandet$date,
tbase = 2,
tfrost = -2,
equation = "a")
#####################################################
# demo of the array method but no frost event is returned
# because the data comes from the tropics
data("temp_dat", package = "climatrends")
late_frost(temp_dat, day.one = "2013-10-27")
Run the code above in your browser using DataLab