[R] Problem in using train() function in Caret

2019-04-01 Thread Chaoyang Li
Hi, Everyone, I have another question with using train() function in Caret package. When I coded tree.spam.cv <- train(Label~., data = train_spam_toke_df, methods = "rpart", trControl = cv_spam_control, tuneLenght = 7) it gave the error as follow, Error in terms.formula(formu

[R] Problems install R package "Caret" in Rstudio version 3.3.3

2019-03-31 Thread Chaoyang Li
Hi, everyone, I was trying to use the ‘caret’ for splitting dataset and cross validation function, but I couldn’t install this package and it always gives me following warning: Warning in install.packages : package ‘caretEnsembles’ is not available (for R version 3.3.3).