Description Usage Arguments Value Author(s) Examples
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)
1 2 | daily2annual(dailyData, FUN = mean, startYear = "01",
threshold = 0.1, ...)
|
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 |
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
Florine Garcia (florine.garcia@gmail.com)
Pierre L'Hermite (pierrelhermite@yahoo.fr)
1 | daily2annual(dailyprec, FUN = sum, startYear = "08", threshold = 0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.