Re: [R] randomforests - how to classify

2010-05-04 Thread Changbin Du
use (as.factor(target) ~., data =your data, ...) On Tue, May 4, 2010 at 12:07 PM, pdb wrote: > > Hi, > > I'm experimenting with random forests and want to perform a binary > classification task. > I've tried some of the sample codes in the help files and things run, but I > get a message to

[R] randomforests - how to classify

2010-05-04 Thread pdb
Hi, I'm experimenting with random forests and want to perform a binary classification task. I've tried some of the sample codes in the help files and things run, but I get a message to the effect 'you don't have very many unique values in the target - are you sure you want to do regression?' (so