R - 插入符号出现问题 - “loadNamespace 中的错误...没有名为“recipes”的包; ”
我正在尝试运行 Box-Cox 转换函数,但我不断收到以下错误消息。在代码和错误下面,我列出了一些我已安装但无济于事的库和软件包。我正在使用带有 R 的 Jupyter 笔记本
Mycode:
caret::BoxCoxTrans(mydataframe$mycolumn)
控制台中的错误:
loadNamespace 中的错误( i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
没有名为“recipes”的包 回溯:
- 插入符::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)
我已完成以下故障排除:
install.packages('caret',dependency = TRUE)
install.packages(“recipes”,dependency = TRUE)
install.packages(c('ddalpha') , 'recipes'))
“Recipes”无论是什么似乎都被下载了,因为我收到了以下警告: “包'recipes'的安装具有非零退出状态”install.packages(“recipes”,dependency = TRUE)中的警告消息:
非常感谢帮助我不知道问题是什么
所需的输出:
Box- Cox 变换
用于估计 Lambda
输入数据摘要的 xx 数据点: 分钟。第一曲。第三曲区中位数平均值。最大限度。 xx
最大/最小:xx 样本偏度:xx
估计 Lambda:xx
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论