Re: [R] rpart space in column names

2012-05-28 Thread Jeff Newmiller
It is isn't easy to write code that works with column names that have spaces. You could rewrite rpart, or just rename the columns in your data frame to work around the bug. See ?names. --- Jeff Newmiller

Re: [R] rpart space in column names

2012-05-28 Thread Prof Brian Ripley
On 28/05/2012 08:27, Jeff Newmiller wrote: It is isn't easy to write code that works with column names that have spaces. You could rewrite rpart, or just rename the columns in your data frame to work around the bug. See ?names. In any case, rpart pre-dates the `` notation that made this

[R] rpart space in column names

2012-05-27 Thread Raji
Hi, Our data has column names with spaces in that.The names in dataFrame are, *[1] Sepal Length Sepal Width Petal Length Petal Width Species * When i try to use the column names in rpart function, it gives the following error. * rp-rpart(as.factor(`Species`)~`Sepal Length`) Error in