1 year ago
#339988
Tadhgo
R - Having trouble with caret - "Error in loadNamespace... there is no package called 'recipes' "
I'm trying to run the Box-Cox Transformation function but I keep getting the below error message. Below the code and error I have listed some of the libraries and packages that I've installed to no avail. I'm using Jupyter notebook with R
Mycode:
caret::BoxCoxTrans(mydataframe$mycolumn)
The error in the console:
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called 'recipes' Traceback:
- caret::BoxCoxTrans
- getExportedValue(pkg, name)
- asNamespace(ns)
- getNamespace(ns)
- loadNamespace(name)
- namespaceImport(ns, loadNamespace(i, c(lib.loc, .libPaths()), . versionCheck = vI[[i]]), from = package)
- loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
- withRestarts(stop(cond), retry_loadNamespace = function() NULL)
- withOneRestart(expr, restarts[[1L]])
- doWithOneRestart(return(expr), restart)
I have done the following troubleshooting:
install.packages('caret', dependencies = TRUE)
install.packages("recipes", dependencies = TRUE)
install.packages(c('ddalpha', 'recipes'))
"Recipes" whatever that is seems to be downloaded as I got the following warning amongst others: "installation of package 'recipes' had non-zero exit status"Warning message in install.packages("recipes", dependencies = TRUE):
Help would be very much appreciated I don't know what the problem is
Desired output:
Box-Cox Transformation
xx data points used to estimate Lambda
Input data summary: Min. 1st Qu. Median Mean 3rd Qu. Max. xx
Largest/Smallest: xx Sample Skewness: xx
Estimated Lambda: xx
r
package
caret
recipe
0 Answers
Your Answer