Re: [R] ordering problem

2008-10-07 Thread Moshe Olshansky
Try AA <- apply(A,1,function(x) paste(x,collapse="")) and work with AA. --- On Tue, 30/9/08, Jose Luis Aznarte M. <[EMAIL PROTECTED]> wrote: > From: Jose Luis Aznarte M. <[EMAIL PROTECTED]> > Subject: [R] ordering problem > To: [EMAIL PROTECTED] > Receiv

[R] ordering problem

2008-09-30 Thread Jose Luis Aznarte M.
Hi there! I need some assistance here with vector orderings. I have a set of q vectors of length p, grouped by rows in a matrix A, q·p, that I need to order lexicographically (http://en.wikipedia.org/wiki/Lexicographical_order). I also have another matrix B, p·r, and a vect