Re: [R] "nonstandard" column names

2008-01-21 Thread Prof Brian Ripley
On Mon, 21 Jan 2008, Moshe Olshansky wrote: > Thanks to all those who responded! > > Now the obvious thing (putting the column name into > double quotes) works for me too. But it didn't work > yesterday! I have no explanation for this. I would have thought 'the obvious thing' for $ was x$`CPI/RP

Re: [R] "nonstandard" column names

2008-01-21 Thread Moshe Olshansky
Thanks to all those who responded! Now the obvious thing (putting the column name into double quotes) works for me too. But it didn't work yesterday! I have no explanation for this. Moshe. --- Moshe Olshansky <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I am sure that this question has been

Re: [R] "nonstandard" column names

2008-01-21 Thread Marc Schwartz
(Ted Harding) wrote: > Are you sure the name really is "CPI/RPI"? In setting > yp my example, I read in a CSV file "temp.csv": > > A,B/C > 1,2 > 3,4 > 5,6 > > with > > D<-read.csv("temp.csv") > > and got: > >> D > A B.C > 1 1 2 > 2 3 4 > 3 5 6 > > so read.csv() had changed the name

Re: [R] "nonstandard" column names

2008-01-21 Thread Ted Harding
On 21-Jan-08 23:36:46, Moshe Olshansky wrote: > Hi everyone, > > I am sure that this question has been asked here some > time ago but I do not remember the answer and was > unable to find it in the archives... > > Below is my question: suppose that I have a data.frame > x and one of it's columns

Re: [R] "nonstandard" column names

2008-01-21 Thread Bill.Venables
e: +61 7 3286 7700 mailto:[EMAIL PROTECTED] http://www.cmis.csiro.au/bill.venables/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Moshe Olshansky Sent: Tuesday, 22 January 2008 9:37 AM To: r-help@r-project.org Subject: [R] "nonstandard

Re: [R] "nonstandard" column names

2008-01-21 Thread Marc Schwartz
Moshe Olshansky wrote: > Hi everyone, > > I am sure that this question has been asked here some > time ago but I do not remember the answer and was > unable to find it in the archives... > > Below is my question: suppose that I have a data.frame > x and one of it's columns name is "CPI/RPI" (with

[R] "nonstandard" column names

2008-01-21 Thread Moshe Olshansky
Hi everyone, I am sure that this question has been asked here some time ago but I do not remember the answer and was unable to find it in the archives... Below is my question: suppose that I have a data.frame x and one of it's columns name is "CPI/RPI" (without quotation marks of course). How can