Re: Summary [R] R 1.9.0, special characters in variable names.

2004-06-24 Thread Murray Jorgensen
This is not what I would call a summary. A summary should: 1. State the original question. 2. Give a pre'cis of the responses. Murray Jorgensen Sixten Borg wrote: Summary: The locale setting in the operating system seems to be involved in what confused me a little bit. Thank you all for

Summary [R] R 1.9.0, special characters in variable names.

2004-06-24 Thread Sixten Borg
Summary: The locale setting in the operating system seems to be involved in what confused me a little bit. Thank you all for your help, especially the suggested work-around data.frame(..., check.names=F) which works very well. A mystery still to be solved is why two versions of R, running on

RE: [R] R 1.9.0, special characters in variable names.

2004-06-24 Thread Prof Brian Ripley
On Thu, 24 Jun 2004, Ingolfsson, Olafur wrote: > "Sixten Borg" <[EMAIL PROTECTED]> writes: > When I use these as variable names in a data.frame, odd things happen: > > data.frame(a=1, å=2, ä=3, ö=4) > > a å ä X. > > 1 1 2 3 4 > > I your variables only include numbers (or only characters)

Re: [R] R 1.9.0, special characters in variable names.

2004-06-24 Thread Uwe Ligges
Ingolfsson, Olafur wrote: "Sixten Borg" <[EMAIL PROTECTED]> writes: When I use these as variable names in a data.frame, odd things happen: data.frame(a=1, å=2, ä=3, ö=4) a å ä X. 1 1 2 3 4 I your variables only include numbers (or only characters), this works XX <- cbind(a=1, å=2, ä=3, ö

RE: [R] R 1.9.0, special characters in variable names.

2004-06-24 Thread Ingolfsson, Olafur
"Sixten Borg" <[EMAIL PROTECTED]> writes: When I use these as variable names in a data.frame, odd things happen: > data.frame(a=1, å=2, ä=3, ö=4) > a å ä X. > 1 1 2 3 4 I your variables only include numbers (or only characters), this works XX <- cbind(a=1, å=2, ä=3, ö=4, æ=5, ø=6) > XX

Re: [R] R 1.9.0, special characters in variable names.

2004-06-24 Thread Peter Dalgaard
"Sixten Borg" <[EMAIL PROTECTED]> writes: > Hello all, > > I upgraded from R 1.8.1 to 1.9.0 (Windows XP), and spotted an odd thing. > > The last three letters in the Swedish alphabet are å, ä and ö. (In case they don't > show correctly: they are a with a ring, a with two dots, and o with two do

Re: [R] R 1.9.0, special characters in variable names.

2004-06-24 Thread Prof Brian Ripley
This is a function of the OS set by your locale, and there is nothing we can do about it. It is done by the C call isalpha in do_makenames in src/main/character.c. My Windows XP machine in Swedish does accept all three, using the CRAN-compiled version of rw1091.exe, so something is up with yours

[R] R 1.9.0, special characters in variable names.

2004-06-23 Thread Sixten Borg
Hello all, I upgraded from R 1.8.1 to 1.9.0 (Windows XP), and spotted an odd thing. The last three letters in the Swedish alphabet are å, ä and ö. (In case they don't show correctly: they are a with a ring, a with two dots, and o with two dots (HTML: å ä ö). When I use these as variable names