[R] Formatted text output

2009-03-01 Thread Gregory Propf
How does one write formatted, say C style, output to a text file. I want something like y=mx+b for my linear regressions but with m and b derived from the fit objects. Also, how does one go about extracting just the slope or intercept from such an object. - Greg

Re: [R] Formatted text output

2009-03-01 Thread David Winsemius
The innards of an object can be revealed with the str function and the coef function should have been a link off the lm page (assuming that was the sort of fit you were creating.) For output to files see ?cat On Mar 1, 2009, at 3:15 PM, Gregory Propf wrote: How does one write formatted,

Re: [R] Formatted text output

2009-03-01 Thread Charles C. Berry
On Sun, 1 Mar 2009, Gregory Propf wrote: How does one write formatted, say C style, output to a text file. I want something like y=mx+b for my linear regressions but with m and b derived from the fit objects. Also, how does one go about extracting just the slope or intercept from such an

Re: [R] Formatted text output

2009-03-01 Thread Gregory Propf
Bye Chuckles, killfiled. - Greg From: Charles C. Berry cbe...@tajo.ucsd.edu Cc: R-help r-help@r-project.org Sent: Sunday, March 1, 2009 2:47:51 PM Subject: Re: [R] Formatted text output On Sun, 1 Mar 2009, Gregory Propf wrote: How does one write formatted