Re: [R] randomForest: How to append ID column along with predictions

2010-12-07 Thread Dennis Duro
- >> From: r-help-boun...@r-project.org >> [mailto:r-help-boun...@r-project.org] On Behalf Of Dennis Duro >> Sent: Tuesday, December 07, 2010 11:46 AM >> To: r-help@r-project.org >> Subject: [R] randomForest: How to append ID column along with >> prediction

Re: [R] randomForest: How to append ID column along with predictions

2010-12-07 Thread Liaw, Andy
..@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Dennis Duro > Sent: Tuesday, December 07, 2010 11:46 AM > To: r-help@r-project.org > Subject: [R] randomForest: How to append ID column along with > predictions > > Hi all, > > When running a prediction

[R] randomForest: How to append ID column along with predictions

2010-12-07 Thread Dennis Duro
Hi all, When running a prediction using RF on another data, I get two columns returned: row number(?) and predicted class. Is there a way of appending the unique row value from an ID column in the dataframe to the predictions instead of the row number? I'm assuming that the returned results follow

[R] randomForest: How to append ID column along with predictions

2010-12-07 Thread Dennis
Hi all, When running a prediction using RF on another data, I get two columns returned: row number(?) and predicted class. Is there a way of appending the unique row value from an ID column in the dataframe to the predictions instead of the row number? I'm assuming that the returned results follow