错误:不支持有关R中LCA的NA列索引

时间:2018-10-10 09:23:19

标签: r indexing na

我收到了错误

  

错误:不支持NA列索引

对于以下代码:

    UL=matrix(nrow=nrow(newdata),ncol = n)

for (i in c(1:n)){
  UL[,i] = unlist(newdata[i]+1)

}



res2 =poLCA(UL~1,maxiter = 50000,nclass = 10,nrep = 10,data =newdata,graphs = TRUE)

我确实从数据中删除了所有NA值,但仍然出现此错误,如果有人对此有任何信息,将不胜感激。

0 个答案:

没有答案