[R] about sorting

From: Vladimir Eremeev <wl2776_at_gmail.com>
Date: Tue 30 Jan 2007 - 12:07:52 GMT

see ?order
ar2[,order(colnames(ar2))]

Federico Abascal wrote:
>
> I have another question: how can I sort the columns of an array
> according to its column names (for ar2, change CAEB to ABCE)?
>

-- 
View this message in context: http://www.nabble.com/-R--how-to-join-two-arrays-using-their-column-names-intersection-tf3141828.html#a8708259
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue Jan 30 23:23:54 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 30 Jan 2007 - 13:30:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.