Learn R Programming

FeedbackTS (version 1.2)

KDD-class: Class "KDD"

Description

Class KDD (Key Day Dataset) used as argument in FeedbackTS functions for the analysis of fragmented time directionality and feedback.

Arguments

Objects from the Class

Objects can be created by calls of the form new("KDD", ...), kdd.from.raw.data(...) and kdd(...).

References

Soubeyrand, S., Morris, C. E. and Bigg, E. K. (in press). Analysis of fragmented time directionality in time series to elucidate feedbacks in climate data. Environmental Modelling and Software.

See Also

kdd, kdd.from.raw.data, KDD.yearly.average, rain.site.6008

Examples

Run this code
showClass("KDD")

#### 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)

## summary of the object
summary(KDD)
## names of the object
names(KDD)
slotNames(KDD)

## show attributes of the object
KDD["before.after"][,1:5]
KDD["date"]
KDD["keyday.threshold"]

# change keyday threshold
KDD["keyday.threshold"]=50

Run the code above in your browser using DataLab