Re: [R] NA in R package randomForest

2012-03-26 Thread Weidong Gu
Your data set probably has character variables. You can transform them into factors before running na.roughfix. Weidong Gu On Mon, Mar 26, 2012 at 8:17 AM, silje skår wrote: > I have a question regarding NA in randomForest (in R). I have a dataset > which include both numerical and non-numerical

[R] NA in R package randomForest

2012-03-26 Thread silje skår
I have a question regarding NA in randomForest (in R). I have a dataset which include both numerical and non-numerical variables, and the data includes some NA. I tried to use na.roughfix but then i get an error message "na.roughfix only works for numeric or factor". I also tried rfImpute but this