TSaggreg: Aggregates daily rainfall totals at quasi-week time scales

View source: R/TSaggreg.R

TSaggregR Documentation

Aggregates daily rainfall totals at quasi-week time scales

Description

Aggregates daily rainfall totals at quasi-week time scales

Usage

TSaggreg(daily.rain, start.date, TS = 4L)

Arguments

daily.rain

Vector, 1-column matrix or data frame with daily rainfall totals.

start.date

Date at which the aggregation should start. Preferred formats are “YYYY-MM-DD”, “YYYY/MM/DD” but most any valid date format should work.

TS

Time scale on the quasiWeek basis (integer values between 1 and 96). Default is 4, which corresponds to the monthly time scale.

Value

A matrix with rainfall amounts aggregated at the time scale selected by the user

Examples


daily.rain <- CampinasRain[,2]
rainTS4 <- TSaggreg(daily.rain=daily.rain,start.date="1980-01-01",TS=4)

SPIChanges documentation built on April 3, 2025, 7:08 p.m.