What does “argument to 'which' is not logical” mean in FactoMineR MCA?

前端 未结 4 474
后悔当初
后悔当初 2021-01-04 10:40

I\'m trying to run an MCA on a datatable using FactoMineR. It contains only 0/1 numerical columns, and its size is 200.000 * 20.

require(FactoMineR)
result &         


        
4条回答
  •  迷失自我
    2021-01-04 10:52

    Are the classes of your variables character or factor?I was having this problem. My solution was to change al variables to factor.

    #my data.frame was "aux.da"
    i=0
    while(i < ncol(aux.da)){
      i=i+1  aux.da[,i] = as.factor(aux.da[,i])
    }
    

提交回复
热议问题