TSaggreg | R Documentation |
Aggregates daily rainfall totals at quasi-week time scales
TSaggreg(daily.rain, start.date, TS = 4L)
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. |
A matrix with rainfall amounts aggregated at the time scale selected by the user
daily.rain <- CampinasRain[,2]
rainTS4 <- TSaggreg(daily.rain=daily.rain,start.date="1980-01-01",TS=4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.