[R] a question of alphabetical order

[Ricardo Rodriguez] Your XEN ICT Team webmaster at xen.net
Wed Apr 16 00:01:21 CEST 2008


Almost done...

Sys.setlocale(category = "LC_ALL", locale = "es_ES.ISO8859-15")

The order is now correct, but it renders incorrectly most of the 
non-ASCII characters, both in console:

1 √\201guilas de mantenimiento 1.97 NA 1.72
2 √\201ngeles de la CONAGUA 1.77 1.97 1.94

And in quartz():

http://mire.environmentalchange.net/~webmaster/images/MexRenderErrors.png

Well, the solution seems to be to set order with a locale, and to create 
the output with the other, is this possible?

Thanks!

Ricardo

[Ricardo Rodriguez] Your XEN ICT Team wrote:
> Tricky question, this order issue :-(
>
> Thank you so much for the detailed explanation.
>
> Thus, please, must I conclude that I will have to survive with this 
> ASCII order while working in Mac OS X 10.5.2 until Mac people fix this bug?
>
> You spoke about es_ES.ISO8859-15 in Mac. Will it do the trick? Yes, as 
> far as I understand. But as I am using R.app, locale is set by the 
> system preferences. Truly, I am kind of a mess with this issue.
>
> Could I force es_ES.ISO8859-15 as a locale in the Mac.
>
> Sorry of I put another question here... why does Excel order list 
> correctly? I guess it doesn't relies on Mac settings.
>
> As a R newbie I must recognize that this, and others, behaviours are 
> really hard to deal with. But I've seen, an even done, such an amount of 
> wonderful things with R that it is worth all efforts. Thanks for your help.
>
> All the best,
>
> Ricardo
-- 
Ricardo Rodríguez
Your XEN ICT Team



More information about the R-help mailing list