tempProb | R Documentation |
Calculates the first day in the year where the probability of temperature over a threshold is higher than a predefined threshold.
tempProb(mx, dates, thres = 20, month = NULL)
mx |
vector of daily (usually maximum) temperature series. |
dates |
vector of dates corresponding with daily temprature series |
thres |
temperature threshold considered to trigger occurrence. |
month |
integer between 1 and 12 indicating the month to compute the probability. |
A numeric vector with annual values is returned.
tempProb(mx = daily_tmax, dates = seq.Date(as.Date('1981-01-01'), as.Date('2010-12-31'), by ='day'), thres = 20, month = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.