[R] export lm object to ascii from batch mode

Spencer Graves spencer.graves at pdf.com
Sun Mar 23 02:45:56 CET 2003


Did you try "sink"?

Spencer Graves

Alain Zuur wrote:
> Hi,
> 
> I'm running R in batch mode from Tcl. I'm using R code of the form:   
> tmp<-lm(Y ~ X)  
> 
> I would like to have the:   print(summary(tmp))
> output in an ascii file. In the same way/format as it would normally 
> appear in R.
> 
> Any suggestions would be very helpful (tried all the functions dump, 
> save, write, etc, their help files and archives..but I'm stuck).
> 
> Kind regards,
> 
> Alain
> 
> In a later stage, I want to do the same for the summary stuff of  
> step(), gam() and glm().
> 
> 
> 
> 
> 
> Dr Alain F. Zuur
> 
> NEW: Statistics course "Analysing Biological and Environmental Field Data"
> http://www.highstat.com <http://www.highstat.com/>
> 
> 
> Highland Statistics Ltd.
> Statistical courses, consultancy and data analysis
> 6 Laverock road
> Newburgh AB41 6FN
> Aberdeenshire
> United Kingdom
> Tel: +44 (0)1358 789293
> email: highstat at highstat.com
> 
> 
> Brodgar: Software for Multivariate Analysis and Multivariate Time Series 
> Analysis
> http://www.brodgar.com <http://www.brodgar.com/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help



More information about the R-help mailing list