[R] Extracting results from a median polish
R. Michael Weylandt
michael.weylandt at gmail.com
Wed May 2 16:00:42 CEST 2012
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.
>
More information about the R-help
mailing list