Skip to content
Prev 252812 / 398498 Next

attr question

Erin

You could use 

as.vector(t.test(buzz$var1, conf.level=.98)$conf.int)

Bill Venables.

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Erin Hodgess
Sent: Monday, 7 March 2011 3:12 PM
To: R help
Subject: [R] attr question

Dear R People:

When I want to produce a small sample confidence interval using
t.test, I get the following:
[1] 2.239337 4.260663
attr(,"conf.level")
[1] 0.98

How do I keep the attr statement from printing, please?  I'm sure it's
something really simple.

Thanks,
Sincerely,
Erin