[R] a question of alphabetical order
Prof Brian Ripley
ripley at stats.ox.ac.uk
Wed Apr 16 07:29:26 CEST 2008
On Wed, 16 Apr 2008, [Ricardo Rodriguez] Your XEN ICT Team wrote:
> 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?
Yes, but only for the same character set. I believe R.app assumes UTF-8,
and I would not expect to be able to change charset on a running console.
Please do use R-sig-mac for MacOS-specific issues.
>
> 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
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list