[R] Question about Sort

Wen Huang whuang.ustc at gmail.com
Tue Nov 11 17:26:32 CET 2008


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 there is an option to control the behavior of 'sort'.

Thanks,
Wen



More information about the R-help mailing list