[R-SIG-Mac] sort() under terminal

THIOULOUSE JEAN Jean.Thioulouse at univ-lyon1.fr
Mon Oct 12 17:58:23 CEST 2015


The difference is not between the Terminal and Rgui. Check your locale: in the Terminal, I get

> sort(c("W", "e", "E"))
[1] "e" "E" "W"

> sessionInfo()
R version 3.2.1 (2015-06-18)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.10.5 (Yosemite)

locale:
[1] fr_FR.UTF-8/fr_FR.UTF-8/fr_FR.UTF-8/C/fr_FR.UTF-8/fr_FR.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] adegraphics_1.0-4  RColorBrewer_1.1-2 sp_1.1-1           KernSmooth_2.23-14
[5] grid_3.2.1         ade4_1.7-2         lattice_0.20-31   

Jean


> Le 12 oct. 2015 à 16:59, Adrian Dușa <dusa.adrian at unibuc.ro> a écrit :
> 
> Dear All,
> 
> I tried to search some information about this on Google, but didn't find
> anything yet.
> There seems to be a difference between sorting in the Terminal app and
> sorting in the Rgui:
> 
> In the Terminal:
> 
>> sort(c("W", "e", "E"))
> [1] "E" "W" "e"
>> R.version
>               _
> platform       x86_64-apple-darwin13.4.0
> arch           x86_64
> os             darwin13.4.0
> system         x86_64, darwin13.4.0
> status
> major          3
> minor          2.2
> year           2015
> month          08
> day            14
> svn rev        69053
> language       R
> version.string R version 3.2.2 (2015-08-14)
> nickname       Fire Safety
> 
> 
> 
> In the Rgui:
> 
>> sort(c("W", "e", "E"))
> [1] "e" "E" "W"
>> R.version
>               _
> platform       x86_64-apple-darwin13.4.0
> arch           x86_64
> os             darwin13.4.0
> system         x86_64, darwin13.4.0
> status
> major          3
> minor          2.2
> year           2015
> month          08
> day            14
> svn rev        69053
> language       R
> version.string R version 3.2.2 (2015-08-14)
> nickname       Fire Safety
> 
> 
> Could anyone point me to some information, please?
> Best wishes,
> Adrian
> 
> 
> -- 
> Adrian Dusa
> University of Bucharest
> Romanian Social Data Archive
> Soseaua Panduri nr.90
> 050663 Bucharest sector 5
> Romania
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

—-
Jean THIOULOUSE
http://lbbe.univ-lyon1.fr/-Thioulouse-Jean-.html





More information about the R-SIG-Mac mailing list