Would this work for you, using the example in the TukeyHSD documentation?

summary(fm1 <- aov(breaks ~ wool + tension, data = warpbreaks))
temp <- TukeyHSD(fm1, "tension", ordered = TRUE)
write.csv(data.frame(temp$tension), 'tukeyresults.csv')


______________________Scott Chamberlain
Rice University, EEB Dept.


On Friday, June 3, 2011 at 9:08 AM, Kevin Burnham wrote:

> Hi All,
> 
> I am wondering if their is a convenient way to export the results of the
> TukeyHSD function to Word or Excel.
> 
> I have used capture.output(tukey.contrast, file="tukey.contrast.xls")
> 
> and this works, but the data are not in a table form, and so it is sort of a
> pain to manipulate the output.
> 
> I have be unable to find a more convenient way and any assistance would be
> greatly appreciated.
> 
> Thanks,
> Kevin Burnham
> 
>  [[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help@r-project.org (mailto:R-help@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.


	[[alternative HTML version deleted]]

