[R] save model summary

2012-04-23 Thread Eiko Fried
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

Thanks for your help

[[alternative HTML version deleted]]

__
R-help@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.


Re: [R] save model summary

2012-04-23 Thread Berend Hasselman

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

__
R-help@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.