I have some personal dataset. So I split it into variable to predict and predictors. Following is the syntax:
library(Cubist)
str(A)
'data.frame': 6038 obs. of 3 variables:
$ ads_return_count : num 7 10 10 4 10 10 10 10 10 9 ...
$ actual_cpc : num 0.0678 0.3888 0.2947 0.0179 0.095 ...
$ is_user_agent_bot: Factor w/ 1 level "False": 1 1 1 1 1 1 1 1 1 1 ...
cubist(A[,c("ads_return_count","is_user_agent_bot")],A[,"actual_cpc"])
And I am getting the following error
cubist code called exit with value 1
Error in strsplit(tmp, "\"")[[1]] : subscript out of bounds
Is there something I am missing ?