Using Caret Package but Getting Error in library(e1071)

こ雲淡風輕ζ 提交于 2019-11-29 10:30:09

问题


Here are my codes, 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!


回答1:


You need to install the package e1071, as the error message is telling you.

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



回答2:


If you will be using the caret package regularly try:

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

This will automatically download package e1071 as well as ellipse and many other package dependancies that arise in using caret

for more information please check out the CRAN package page for caret here caret package info



来源:https://stackoverflow.com/questions/24131798/using-caret-package-but-getting-error-in-librarye1071

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!