[R] changing langage
Hi all, I've got a small, practical question, which untill now I couldn't solve (otherwhise I wouldn't mail it, right?) First of all, I'm talking about R 2.0.1 on a winxp system (using the default graphical interface being 'Rgui'). When I make plots, using dates on the x-axis, it puts the labels in Dutch, which is nice (since it's my mother tongue) unless I want them in English... Is there a way to change this behaviour? (Can I change the labels etc to English?) tnx, Kurt Sys __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] changing langage
Kurt Sys [EMAIL PROTECTED] writes: Hi all, I've got a small, practical question, which untill now I couldn't solve (otherwhise I wouldn't mail it, right?) First of all, I'm talking about R 2.0.1 on a winxp system (using the default graphical interface being 'Rgui'). When I make plots, using dates on the x-axis, it puts the labels in Dutch, which is nice (since it's my mother tongue) unless I want them in English... Is there a way to change this behaviour? (Can I change the labels etc to English?) This type of stuff works on Linux at least: Sys.setlocale(LC_ALL,da_DK) # or en_GB, or plot(date,) -- O__ Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] changing langage
Kurt Sys kurt.sys at pandora.be writes: : : Hi all, : : I've got a small, practical question, which untill now I couldn't solve : (otherwhise I wouldn't mail it, right?) First of all, I'm talking about : R 2.0.1 on a winxp system (using the default graphical interface being : 'Rgui'). : When I make plots, using dates on the x-axis, it puts the labels in : Dutch, which is nice (since it's my mother tongue) unless I want them in : English... Is there a way to change this behaviour? (Can I change the : labels etc to English?) Here is an example: R Sys.setlocale(LC_TIME, en-us) [1] English_United States.1252 R format(ISOdate(2004,1:12,1),%B) [1] January February March April May June [7] July AugustSeptember October November December R Sys.setlocale(LC_TIME, du-be) [1] Dutch_Netherlands.1252 R format(ISOdate(2004,1:12,1),%B) [1] januari februari maart april mei juni [7] juli augustus september oktober november december R R.version.string # XP [1] R version 2.1.0, 2005-01-02 For more codes, google for: Microsoft language codes and look at the first result that is on a Microsoft site. This may or may not change your labels depending on precisely what you are doing. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] changing langage
It uses the language set by LC_TIME: see ?Sys.setlocale and ?format.Date which references it. On Wed, 12 Jan 2005, Kurt Sys wrote: Hi all, I've got a small, practical question, which untill now I couldn't solve (otherwhise I wouldn't mail it, right?) First of all, I'm talking about R 2.0.1 on a winxp system (using the default graphical interface being 'Rgui'). When I make plots, using dates on the x-axis, it puts the labels in Dutch, which is nice (since it's my mother tongue) unless I want them in English... Is there a way to change this behaviour? (Can I change the labels etc to English?) -- Brian D. Ripley, [EMAIL PROTECTED] 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, UKFax: +44 1865 272595 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] changing langage [SOLVED]
To all that replied, thanks... I have a clue where I can change the settings. tnx, Kurt Sys - Oorspronkelijk bericht - Van : Gabor Grothendieck [mailto:[EMAIL PROTECTED] Verzonden : woensdag , januari 12, 2005 05:26 PM Aan : r-help@stat.math.ethz.ch Onderwerp : Re: [R] changing langage Kurt Sys kurt.sys at pandora.be writes: : : Hi all, : : I've got a small, practical question, which untill now I couldn't solve : (otherwhise I wouldn't mail it, right?) First of all, I'm talking about : R 2.0.1 on a winxp system (using the default graphical interface being : 'Rgui'). : When I make plots, using dates on the x-axis, it puts the labels in : Dutch, which is nice (since it's my mother tongue) unless I want them in : English... Is there a way to change this behaviour? (Can I change the : labels etc to English?) Here is an example: R Sys.setlocale(LC_TIME, en-us) [1] English_United States.1252 R format(ISOdate(2004,1:12,1),%B) [1] January February March April May June [7] July AugustSeptember October November December R Sys.setlocale(LC_TIME, du-be) [1] Dutch_Netherlands.1252 R format(ISOdate(2004,1:12,1),%B) [1] januari februari maart april mei juni [7] juli augustus september oktober november december R R.version.string # XP [1] R version 2.1.0, 2005-01-02 For more codes, google for: Microsoft language codes and look at the first result that is on a Microsoft site. This may or may not change your labels depending on precisely what you are doing. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html