Hi, It might be a trivial question but how do you store matrices of different dimensions read from a file or in a loop together? The best solution might be a list but I don't store the first matrix correctly:
m = rbind(c(1,2),c(3,4),c(5,6)) t=rbind(c(1,2),c(5,6)) l = list(m) > l = list(l,t) #I assumed that at the begining I don't have m and t at the > same time to do list(m,t), but I list them, one after the other > l [[1]] [[1]][[1]] [,1] [,2] [1,] 1 2 [2,] 3 4 [3,] 5 6 [[2]] [,1] [,2] t 1 2 5 6 thanks Carol [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.