[R] save model summary
Berend Hasselman
bhh at xs4all.nl
Mon Apr 23 15:37:14 CEST 2012
On 23-04-2012, at 15:20, Eiko Fried wrote:
> Hello,
>
> I'm working with RStudio, which does not display enough lines in the
> console that I can read the summary of my (due to the covariance-matrix
> rather long) model. There are no ways around this, so I guess I need to
> export the summary into a file in order to see it ...
>
> I'm new to R, and "R save model summary" in google doesn't help, neither
> does "help(save)" or "help(write.csv)". If I try the commands I get the
> error:
>
>> write.csv(summary(m2),file="data.csv")
>> Error in as.data.frame.default(x[[i]], optional = TRUE) :
>> cannot coerce class 'structure("mer", package = "lme4")' into a
> data.frame
?sink
?capture.output
Berend
More information about the R-help
mailing list