[R] Save object summary to file
prseye at gmail.com
Fri Sep 12 09:02:55 CEST 2008
Thanks Yihui and to others who replied privately.
Very helpful information.
> 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-tp19447000p19450595.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help