dailyToMonthly: Daily to monthly.

View source: R/TimeSeries.R

dailyToMonthlyR Documentation

Daily to monthly.

Description

Transform a daily time series into a monthly one.

Usage

dailyToMonthly(x, stat = mean, ...)

Arguments

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.

Value

A data frame with the following columns:

  1. year

  2. month

  3. value

Examples

DF=cbind(getCalendar(2020),value=rnorm(366))
dailyToMonthly(DF)
dailyToMonthly(DF,stat=max)
dailyToMonthly(DF,stat=quantile,probs=0.75)

benRenard/BFunk documentation built on July 20, 2022, 7:07 a.m.