[R] Getting the character set

Halldor Björnsson halldor at vedur.is
Wed Jun 15 17:17:11 CEST 2005


Hi R-gurus,

In python one can do
 >>> import string
 >>> print string.letters

and get the characters in the local character set.

This feature is often useful in Python, and if I could find it in R
I could make good use of it.

In R both Sys.getlocale() and localeToCharset() can tell me which 
charset I am using, but I haven't found a way to print out the
actual characters. Is there a way to do this?

Sincerely,
H.
-- 
------------------------------------------
Halldor Bjornsson   (halldor at vedur.is)
Vedurstofa Islands (Icelandic Met. Office)
Bustadavegur 9, IS-150, Reykjavik, Iceland




More information about the R-help mailing list