# NOT RUN {
##import return waveform data
data(return)
lr<-nrow(return)
ind<-c(1:lr)
return<-data.frame(ind,return)
x<-return[1,] ###must be a dataset including intensity with index at the beginning.
r1<-decom(x)
r2<-decom.adaptive(x)
# }
# NOT RUN {
# for the whole dataset
dr3<-apply(return[50:200, ],1,decom.adaptive)
# }
Run the code above in your browser using DataLab