getMonthlyStat: Monthly stats

View source: R/TimeSeries.R

getMonthlyStatR Documentation

Monthly stats

Description

Compute interannual monthly statistics from a time series

Usage

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

Arguments

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.

Value

A vector of size 12 containing the monthly statistics

Examples

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)

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