On Wed, Mar 7, 2012 at 2:41 PM, Ajay Askoolum wrote:
> Thank you. Yes, I did look at the help but could not get my expressions to
> work.
>
> You used a data.frame with thematrix values I gave. Your solution also works
> when dealing with a matrix (this my be obvious to seasoned R users, but was
>
Thank you. Yes, I did look at the help but could not get my expressions to work.
You used a data.frame with thematrix values I gave. Your solution also works
when dealing with a matrix (this my be obvious to seasoned R users, but was no
to me).
> x<-matrix(c(57,91,31,61,16,84,3,99,85,47,21,6,57
How about, say, order()? Did you even try to look
in the help, under sort or order since both appear
as keywords in your question?
> dput(x)
structure(list(V1 = c(57L, 84L, 21L, 61L), V2 = c(91L, 3L, 6L,
16L), V3 = c(31L, 99L, 57L, 84L), V4 = c(61L, 85L, 91L, 3L),
V5 = c(16L, 47L, 31L, 99L)),
3 matches
Mail list logo