Hi, thank Petr for your help. I have implemented you code suggestion but there is another problem. It seems that the code:
for (i in 1:m){ Z[i,,]=table(occ, data_matrix[,i]) } don't charge any values in Z. Is there some error? Thanks. Giuseppe -- View this message in context: http://r.789695.n4.nabble.com/Problem-creation-tensor-tp4636737p4638333.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.