An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120502/ac0e2c22/attachment.pl>
Extracting results from a median polish
2 messages · Martin Raymond Lefebvre, R. Michael Weylandt
write.csv() is definitely the right way to go so you're on track What is str(medpolish)?
From the error message, it sounds like it's a function....If it is,
are you sure you don't mean write.csv(medpolish( xx )) ? Michael On Wed, May 2, 2012 at 12:39 AM, Martin Raymond Lefebvre
<mlefebv8 at uwo.ca> wrote:
Quick question from a new user to R, ?How do I extract my solution of a median polish matrix from R to a spreadsheet file such as .csv?
From my reading of my guide book (R for SPSS and SAS users version 2), I deduce that exporting a file to .csv would look like the following:
write.csv(medpolish, file ="outfilename.csv", row.names = FALSE) , by I get the following: Error in as.data.frame.default(x[[i]], optional = TRUE) : ? cannot coerce class '"function"' into a data.frame So far I've been copy/pasting segment by segment into Excel and running text2column, but there has got to be a better way. Martin R. Lefebvre ? ? ? ?[[alternative HTML version deleted]]
______________________________________________ R-help at 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.