Using Caret Package but Getting Error in library(e1071)

573    Asked by AnushaAcharya in Data Science , Asked on Apr 7, 2021

 Here is my code, pretty standard but I am getting the error msg:

library(caret)

set.seed(32343)

modelFit = train(type~.,data=training, method='glm')

error msg:

Error in library(e1071) : there is no package called ‘e1071’

Any idea? Thanks!

Answered by Anusha Acharya

To remove error: package e1071 is required, you need to install the package e1071, as the error message is describing.

install.packages('e1071', dependencies=TRUE)

Your Answer

Interviews

Parent Categories