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 pos
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
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`)
Erro
3 matches
Mail list logo