search for: n4390813

Displaying 1 result from an estimated 1 matches for "n4390813".

2012 Feb 15
3
built a lower triangular matrix from dataframe
...ustrate the dataframe I have, I'll give you an example of a dataframe and matrix with dimensions 6x6 (to make it shorter!) My dataframe looks more or less like this (but longeeeer): (i= number of row, j=number of column, k=value to be included in the matrix) http://r.789695.n4.nabble.com/file/n4390813/df.png An the matrix I should look like this: http://r.789695.n4.nabble.com/file/n4390813/matrix.png Can anyone help me about how to do it? I'm a new R user, and I've tried several combinations of diag(), lower.tri(), matrix(), etc. without any luck... and I don't know if I'm...