Dear useR,

I have a data matrix, it has n columns, each column is a two-level variable
with entires -1 and +1. They are randomly generated, now I want to order
them like (for example, 5 columns case)
-    -    -   -   -
-    -   -   -    -
.................
(first several rows are the samples with all variables in low level)

+   -   -    -   -
+   -   -    -    -
.............................


-   +   -    -   -


+  +   -    -   -



+ + + + +

Is there any function in R that could let me do this order by Var1 then
order by Var2 then...order by Var n


Thanks very much in advance!


Best,

Leon

	[[alternative HTML version deleted]]

