Description Usage Arguments Value Note Author(s) References See Also Examples
View source: R/KDD.yearly.average.R
Build a KDD.yearly.average (yearly average of a Key Day Dataset) by averaging on a yearly basis a KDD object
1 | kdd.yearly.average(object)
|
object |
an object from the KDD class. |
an object from the KDD.yearly.average class.
The before.after
matrix of the KDD object is averaged on a yearly basis: every group of columns corresponding to a single year is averaged into a single column.
Samuel Soubeyrand Samuel.Soubeyrand@avignon.inra.fr, Cindy E. Morris, E. Keith Bigg.
Soubeyrand, S., Morris, C. E. and Bigg, E. K. (2014). Analysis of fragmented time directionality in time series to elucidate feedbacks in climate data. Environmental Modelling and Software 61: 78-86.
KDD.yearly.average, KDD, kdd.from.raw.data, rain.site.6008
1 2 3 4 5 6 7 8 9 10 11 12 13 | #### load data for site 6008 (Callagiddy station)
data(rain.site.6008)
#### build a KDD object from raw data (site 6008: Callagiddy station)
## using a threshold value equal to 25
KDD=kdd.from.raw.data(raw.data=rain.site.6008,keyday.threshold=25,nb.days=20,
col.series=5,col.date=c(2,3,4),na.rm=TRUE,filter=NULL)
#### build the yearly average of KDD
KDD2=kdd.yearly.average(KDD)
## summary of the object
summary(KDD2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.