Skip to content
Back to formatted view

Raw Message

Message-ID: <6B25E843-8AEB-45C4-8744-DC3201CDF6A8@comcast.net>
Date: 2009-03-01T20:25:12Z
From: David Winsemius
Subject: Formatted text output
In-Reply-To: <956494.34953.qm@web112222.mail.gq1.yahoo.com>

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.