Re: [R] Question about Sort

2008-11-11 Thread Wen Huang
Thanks a lot Professor Ripley! I did not go into much of the details in the help page and was hoping somebody could have a quick answer. The answer you provided is indeed helpful! Thank you. On Nov 11, 2008, at 10:40 AM, Prof Brian Ripley wrote: On Tue, 11 Nov 2008, Wen Huang wrote: Hi

Re: [R] Question about Sort

2008-11-11 Thread Prof Brian Ripley
On Tue, 11 Nov 2008, Wen Huang wrote: Hi, I am wondering if there is an option to control how R sort characters on different machines. Yes, and it is described on the help page for sort: The sort order for character vectors will depend on the collating sequence of the locale in us

[R] Question about Sort

2008-11-11 Thread Wen Huang
Hi, I am wondering if there is an option to control how R sort characters on different machines. For example, on my Mac OS X > sort(c("H", "a"), decreasing = TRUE) [1] "a" "H" The same command on a Linux machine gives me > sort(c("H", "a"), decreasing = TRUE) [1] "H" "a" I don't know if th