[R] A simple question

Gang Chen gangchen at mail.nih.gov
Tue Jul 17 21:36:27 CEST 2007


Hi all,

I am a newbie of R, and have a very simple question. When I run the  
following t test

result = t.test(weight ~ group)

If I want to get the t value, I can do

tvalue = result$statistic

with tvalue being the following:

t
1.191260

However, if I just want the number 1.191260, not the character "t",  
how can I achieve that?

Thank you very much,
Gang



More information about the R-help mailing list