dailyToMonthly | R Documentation |
Transform a daily time series into a monthly one.
dailyToMonthly(x, stat = mean, ...)
x |
data frame, should contain at least four columns named 'day', 'month', 'year' and 'value'. |
stat |
function, statistics to be applied. |
... |
other arguments passed to function stat. |
A data frame with the following columns:
year
month
value
DF=cbind(getCalendar(2020),value=rnorm(366)) dailyToMonthly(DF) dailyToMonthly(DF,stat=max) dailyToMonthly(DF,stat=quantile,probs=0.75)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.