Hello, please see the code below reproducing an error in R version 3.4.1 (2017-06-30) x86_64-w64-mingw32 on Windows 7:
data(iris)
library(C50)
names(iris) <- c("Sepal Length", "Sepal Width", "Petal Length", "Petal Width", "Species")
myTree <- C5.0(Species ~ `Sepal Length` + `Sepal Width` + `Petal Length` + `Petal Width`, data=iris)
plot(myTree)
Error in if (!n.cat[i]) { : argument is of length zero
The issue appears to be with column names containing spaces.
The error is thrown by line 3 of c5.split, but unfortunately I'm unable to determine a root cause with any more granularity. I've included a traceback below:
Hello, please see the code below reproducing an error in R version 3.4.1 (2017-06-30) x86_64-w64-mingw32 on Windows 7:
The issue appears to be with column names containing spaces.
The error is thrown by line 3 of c5.split, but unfortunately I'm unable to determine a root cause with any more granularity. I've included a traceback below: