Error in na.fail.default: missing values in object - but no missing values

前端 未结 3 1429
鱼传尺愫
鱼传尺愫 2020-12-10 11:13

I am trying to run a lme model with these data:

tot_nochc=runif(10,1,15)
cor_partner=factor(c(1,1,0,1,0,0,0,0,1,0))
age=runif(10,18,75)
agecu=age^3
day=facto         


        
3条回答
  •  余生分开走
    2020-12-10 12:01

    if your data contain Na or missing values you can use this it will pass the data exactly the same as it is in datasets.

    rf<-randomForest(target~.,data=train, na.action = na.roughfix)

提交回复
热议问题