r - robCompositions imputeUDLs:`[.data.frame`(x, , i) 中的错误:选择了未定义的列
问题描述
我正在尝试使用 robCompositions::imputeUDLs 函数来估算非随机缺失值。
library(robCompositions)
imp_aloq <- imputeUDLs(all_loq_rm25, method = "pls", variation = FALSE, dl = myUDL)
我收到此错误消息:
Error in `[.data.frame`(x, , i) : undefined columns selected
(在错误消息中,[.data.frame 周围有反引号“`”
我使用 make.names() 改变了我的列名,以确保我没有任何单引号
解决方案
推荐阅读
- javascript - MongoDB 返回不存在的文档
- spring-boot - springboot 项目在 AWS EC2 上构建不间断服务器
- python - 我有一个包含许多表的 excel 表,现在我需要将该 excel 上传到 mongodb
- html - 我们可以缩放(转换: scale() )一个 div 及其窗口的宽度(百分比)
- azure-devops - Terraform 工作空间命名约定
- python - 在 SQLAlchemy 中提交时出现 MySQLInterfaceError
- oauth-2.0 - 使用 JMeter 的 oauth 令牌
- python - 手动定义函数 ModuleNotFoundError: No Module error
- .net-core - DotNet Core 删除内容长度标头
- mongodb - MongoDB:获取具有两个值的不同组合的最新文档