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

Rainer M Krug Rainer at krugs.de
Mon Oct 12 17:24:00 CEST 2015


Adrian Dușa <dusa.adrian at unibuc.ro> writes:

> 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:

Just a guess: Check the sessionInfo(). Mine is:

,----
| > sessionInfo()
| R version 3.2.2 (2015-08-14)
| Platform: x86_64-apple-darwin14.5.0 (64-bit)
| Running under: OS X 10.11 (El Capitan)
| 
| locale:
| [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
| 
| attached base packages:
| [1] stats     graphics  grDevices utils     datasets  methods   base
| >
`----

I guess it is the locale settings which are different?

Cheers,

Rainer
>
>> 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

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer at krugs.de

Skype:      RMkrug

PGP: 0x0F52F982
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 454 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20151012/a6f6addc/attachment.bin>


More information about the R-SIG-Mac mailing list