Formatted text output
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, 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 [[alternative HTML version deleted]]
______________________________________________ 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.