Re: [R] Problem with tensor factorization

2012-07-30 Thread Petr Savicky
On Mon, Jul 30, 2012 at 01:09:34PM +0200, Peppe Ricci wrote: > 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 t

[R] Problem with tensor factorization

2012-07-30 Thread Peppe Ricci
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 __ R-h