Steve,
This example works:

x<-TukeyHSD(fm1, "tension", ordered = TRUE)
as.table(x$tension)


Steve Powers wrote:
> 
> So I've come across a few cases where complex outputs from functions 
> will not write to tables. The most recent case involves the TukeyHSD 
> function in the stats package. If I save the TukeyHSD call and print it, 
> that obviously goes fine, but when I try writing to a table, I get an 
> error message that says "cannot coerce class \multicomp\" into 
> dataframe. What does this mean, and how do I work around it? Is there a 
> more "fail-safe" general method of writing complex outputs to a table? 
> The story here is I want to be able to call certain values from the 
> TukeyHSD results to produce custom summaries.
> 
> Using R version 2.4 on Windows XP.---steve
> 
> ______________________________________________
> R-help@stat.math.ethz.ch 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.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/writing-complex-outputs-to-table-tf4407732.html#a12596104
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@stat.math.ethz.ch 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.

Reply via email to