[R] randomForest help
    Liaw, Andy 
    andy_liaw at merck.com
       
    Fri Sep  7 03:57:06 CEST 2007
    
    
  
What software are you using, exactly?  I'm the maintainer of the
randomForest package, yet I do not know which "manual" you are quoting.
If you are using the randomForest package, the model object can be saved
to a file by save(Rfobject, file="myRFobject.rda").  If you need that to
be in ascii, use ascii=TRUE in save().  You can get it back into R by
using load() or attach().
To "run data down the model", use predict(Rfobject, datatopredict) (see
?predict.randomForest).
What exactly do you want to print to a csv file, the prediction?  See
?write or ?write.table.
Andy
From: Jennifer Dawn Watts
 
> 
> Hello!  As a new R user, I'm sure this will be a silly 
> question for the 
> rest of you.   I've been able to successfully run a forest but yet to 
> figure out proper command lines for the following: 
> 1. saving the forest.  The guide just says isavef=1.  I'm unsure how 
> expand on this to create the command.
> 2. Running new data down the mode.  Again, the guide just states irunf
> 3. Print to file.     I need to be able to export this data to a cvs 
> file, to then incorporate into an Arc shapefile.  The manual 
> just says 
> ntestout.
> 
> Again, I feel like these should be easy steps that I just 
> can't relate 
> to as a beginner.  Any advice would be greatly appreciated. 
> 
> Thanks,
> 
> Jenny
> 
> ______________________________________________
> 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
> and provide commented, minimal, self-contained, reproducible code.
> 
> 
> 
------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments,...{{dropped}}
    
    
More information about the R-help
mailing list