Hello, everyone,
 
I don't quite understand the following message:
 
> TTT <- t.test(1:10, y=c(7:20))
> class(TTT)
[1] "htest"
> TTT@p.value
Error: Trying to get slot "p.value" from an object whose class ("htest") is not defined 
> TTT$p.value
[1] 1.855282e-05

Why the message says the class of TTT is not defined while class(TTT) gets "htest"?

I appreciate the explanations?

-Minghua



	[[alternative HTML version deleted]]


