f.pentad: Accumulation into pentads

View source: R/fpentad.R

f.pentadR Documentation

Accumulation into pentads

Description

Internal function to accumulate data into pentads (5-day long periods) using different accumulation functions (mean, max, min, sum, etc.)

Usage

f.pentad(vtime, vvalue, na_rm = F, f = mean)

Arguments

vtime

data frame column or vector containing date data

vvalue

data frame column or vector containing the analysed data

na_rm

boolean (should NA values be removed? Defaulf = F)

f

R function to be applied (default = mean)

Value

The function return a list with two elements. One data frame with time stamped pentad values and a matrix with the 73 pentads organized in lines and years in columns.


pedroalencar1/fdClassify documentation built on Sept. 15, 2023, 3:46 a.m.