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 adata.frame Thanks for your help [[alternative HTML version deleted]]
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
Seemingly Similar Threads
- Robust regression for ordered data
- Exclude missing values on only 1 variable
- How to use summary.mer inside a package?
- Poisson Regression: questions about tests of assumptions
- Defining S3-methods for S4-objects: cannot coerce type 'S4' to vector of type 'integer'