首页 > 解决方案 > 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() 改变了我的列名,以确保我没有任何单引号

标签: rimputation

解决方案


推荐阅读