getMonthlyStat | R Documentation |
Compute interannual monthly statistics from a time series
getMonthlyStat(x, stat = mean, ...)
x |
data frame, should contain at least two columns named 'month' and 'value'. |
stat |
function, statistics to be applied. |
... |
other arguments passed to function stat. |
A vector of size 12 containing the monthly statistics
data(nottem) # Average Monthly Temperatures (F) at Nottingham, 1920-1939 DF=data.frame(year=rep(1920:1939,each=12),month=1:12,value=nottem) getMonthlyStat(DF) getMonthlyStat(DF,stat=quantile,probs=0.75)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.