[R] To export results

David Winsemius dwinsemius at comcast.net
Mon Dec 28 14:48:53 CET 2009


On Dec 28, 2009, at 12:19 AM, sathiya_mtm wrote:

>
> Hi
>
> I am new to this software, Please tell me how to save the result to  
> a word
> or text format from R console.
>
> For example, if I run a regression, and I want to save the result in  
> the
> word what should I do for that. Please do reply for my query.

?capture.output
?sink

perhaps:
capture.output(fit<- lm(y~z), file="lmout.txt")

or even:
fit<- lm(y~z)
capture.output( summary(fit), file="lmout.txt")

>
> Thanks
> Arun Sathiya.
> -- 
> View this message in context: http://n4.nabble.com/To-export-results-tp989600p989600.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org 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.

David Winsemius, MD
Heritage Laboratories
West Hartford, CT



More information about the R-help mailing list