I used the following command to train a randomForest model train.rf <- randomForest(grp ~ ., data=tr, ntree=100, mtry=50) My question is how to save the trained model so that it can be loaded later for testing new samples? Thanks, Luk --------------------------------- [[alternative HTML version deleted]]
Use save(). Andy From: luk> > I used the following command to train a randomForest model > train.rf <- randomForest(grp ~ ., data=tr, ntree=100, mtry=50) > > My question is how to save the trained model so that it can > be loaded later for testing new samples? > > Thanks, > > Luk > > > --------------------------------- > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > >