1 2 3 4 5 6 7 8 9 10 11 12 13
|
//création des données
> xdata=c(1,2,3,4,1,2,3,2,3,2,4,3,5,6,3,6,7,3,5,6,1,2,3,4,5,4,5,6,7,4,5)
> curvedata=c(1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3)
> timeindexdata=c(1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10,11)
//création de la structure
> traces<- structure (list(x=xdata,curve=curvedata, timeindex=timeindexdata))
//exécution de la fonction fitfclust
> testfit <- fitfclust(data=traces)
Erreur dans apply(points[class == k, ], 2, mean) :
dim(X) must have a positive length |
Partager