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
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
2 matches
Mail list logo