Hi everybody.
I have a TukeyHSD object (as fallows):

$Biofacies
           diff        lwr        upr     p adj
2-1  2.04392007  0.8128809  3.2749592 0.0001406
3-1 -0.14727913 -1.4102987  1.1157404 0.9993065
4-1 -0.63337954 -1.8963991  0.6296400 0.6738977
5-1 -0.38314928 -1.6461688  0.8798703 0.9447638
6-1 -0.58739330 -1.8504128  0.6756262 0.7390480
3-2 -2.19119920 -3.4222384 -0.9601600 0.0000420
4-2 -2.67729960 -3.9083388 -1.4462604 0.0000007
5-2 -2.42706935 -3.6581085 -1.1960302 0.0000058
6-2 -2.63131337 -3.8623525 -1.4002742 0.0000010
4-3 -0.48610041 -1.7491199  0.7769191 0.8616004
5-3 -0.23587015 -1.4988897  1.0271494 0.9934682
6-3 -0.44011417 -1.7031337  0.8229054 0.9043453
5-4  0.25023026 -1.0127893  1.5132498 0.9914204
6-4  0.04598624 -1.2170333  1.3090058 0.9999978
6-5 -0.20424402 -1.4672636  1.0587755 0.9966714

I'm trying to save (export) it as a table to txt or xls format but I can't.
Every time I try I got the fallowing messages.

> write.table(TukeySS,'TukeySS.txt')
Erro em as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors = 
stringsAsFactors) : 
  c("cannot coerce class \"multicomp\" into a data.frame", "cannot coerce class 
\"TukeyHSD\" into a data.frame")
> write.xls(TukeySS,'TukeySS.xls')
Erro em write.xls(TukeySS, "TukeySS.xls") : 
  Currently the following types are supported: REALSXP (double), INTSXP 
(integer), LGLSXP 

Well I understood that it's not in table format, but there isn't anyway to 
create a table with this object?
I wasn't able to find anything about it in the R documentation.

Thanks in advice.
___________________________________
MSc. Rodrigo Aluizio
Centro de Estudos do Mar/UFPR
Laboratório de Micropaleontologia
Avenida Beira Mar s/n - CEP 83255-000
Pontal do Paraná - PR - BRASIL

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to