daily2annual: Calculate annual data from daily data

Description Usage Arguments Value Author(s) Examples

Description

Transform a daily time series into an annual one. The user can give a threshold of missing values authorized per year for the aggregation and choose the day to start the year (hydrological year or not)

Usage

1
2
daily2annual(dailyData, FUN = mean, startYear = "01",
  threshold = 0.1, ...)

Arguments

dailyData

[zoo] zoo object with the daily time series. The date format must be "%Y-%m-%d"

FUN

[function] function that have to be applied for the annual aggregation (by default: mean)

startYear

[character] indicate the month to start the hydrological year. The format must be "MM" (by default, calendar year: "01")

threshold

[numeric] threshold of missing values authorized to compute the annual aggregation. Values must be between 0 and 1 (by default, 10%: 0.1)

...

further arguments

Value

annualData [zoo] zoo object with the annual computed time series. The date is in the format "%Y-MM-01", corresponding of the start month of the year

Author(s)

Florine Garcia (florine.garcia@gmail.com)

Pierre L'Hermite (pierrelhermite@yahoo.fr)

Examples

1
daily2annual(dailyprec, FUN = sum, startYear = "08", threshold = 0.1)

flogrc/piflow documentation built on May 24, 2019, 7:34 a.m.