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, �=4, �=5, �=6)

XX

a � � � � � [1,] 1 2 3 4 5 6 But this doesn't

data.frame(XX)

a � � X. X� X. 1 1 2 3 4 5 6

i.e. it is the data.frame function that manages to mess up the variable names for us Windows users

No, it is related to your Windows setting / version.

I still get

 > data.frame(XX)
   a � � � � �
 1 1 2 3 4 5 6

using the german locales (german version of WinNT 4.0 SP6, R-1.9.1).

Uwe Ligges

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to