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. 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.
> write.table(x2, "filename.txt", col.name=FALSE, row.name=FALSE)# where x2 = variable you want to save Muhammad Rahiz | Doctoral Student in Regional Climate Modeling Climate Research Laboratory, School of Geography & the Environment Oxford University Centre for the Environment South Parks Road, Oxford, OX1 3QY, United Kingdom Tel: +44 (0)1865-285194 Mobile: +44 (0)7854-625974 Email: muhammad.rahiz at ouce.ox.ac.uk 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. > > Thanks > Arun Sathiya. >
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