showClass("ClusterizLongData")
mat <- matrix(c(1,2,3,1,4,6,1,8,10),3)
ld <- new("ClusterizLongData",id=c("1","2","3"),time=c(2,4,8),varName="Age",traj=mat,trajSizeMin=2)
ld["id"]
ld["time"]<- c(1,3,9)
ld["varName"]
ld["traj"]
ld["traj",3]<-c(2,7,9)
(ld)
Run the code above in your browser using DataLab