[R] Save object summary to file

pgseye prseye at gmail.com
Fri Sep 12 01:51:48 CEST 2008


Am wanting to save the summary of a PCA to file.

Have tried:

> write.table(summary(PCA), file="PCAvar.txt", sep="\t")

but receive:

Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors =
stringsAsFactors) : 
  cannot coerce class "summary.princomp" into a data.frame

What am I doing wrong?


View this message in context: http://www.nabble.com/Save-object-summary-to-file-tp19447000p19447000.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list