Re: [R] problem with lower, upper triangles and diagonal

2007-10-09 Thread Birgit Lemcke
Hello Fernando, I have two problems with you suggestion: First what I get back if I use lowerTriangle is this: (f2.low<-lowerTriangle(f2, diag = TRUE)) [1] 0 1 1 1 1 0 1 0 0 1 1 1 1 1 0 But I need a triangle and I need an object of class dist to use afterwards the mantel.rtest function. So I

[R] problem with lower, upper triangles and diagonal

2007-10-09 Thread Birgit Lemcke
Hello R user! I have again a problem and sometimes I have the feeling that I will never learn to solve my problems by myself. But I found no solution in the searchable archieves or somewhere else. I have a square data.frame with distance values. In this special case the upper and the lower tr