Re: [R] How to "Pack" a matrix

2006-09-26 Thread Gabor Grothendieck
It looks like your example only reorders the columns but your discussion refers to ordering rows too. I have only addressed the columns part but it is hopefully clear how to extend this or use other objective functions. We generate every permutation of the rows and define an objective function f

[R] How to "Pack" a matrix

2006-09-26 Thread Guenther, Cameron
Hello, Suppose I have a matrix a where a= sp1 sp2 sp3 sp4 sp5 sp6 site1 1 0 1 1 0 1 site2 1 0 1 1 0 1 site3 1 1 1 1 1 1 site4 0 1