frostFreqs | R Documentation |
This function calculates the frequency of frost occurrence, by month.
frostFreqs( mn, dates, thres = 0, out = NULL, iniday = "07-01", endday = "06-30" )
mn |
vector containing the daily minimum temperature series. |
dates |
sequence of daily dates coinciding with temperature data series. |
thres |
temperature threshold considered to trigger frost occurrence (0 by default). |
out |
system path to the generated output file ('.pdf'). |
iniday |
first day of the year ("dd-mm") to consider for first and last occurrence of frost. |
endday |
last day of the year ("dd-mm") to consider for first and last occurrence of frost. |
Despite the logical threshold of temperature is 0 ÂșC to determine frost occurrence, the argument "thres" is open to change in case of different units of temperature.
If the output path is defined, a pdf file is created.
frostFreqs(mn = daily_tmin, dates = seq.Date(as.Date('1981-01-01'), as.Date('2010-12-31'), by ='day'), thres = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.