[R] attr question

Simon Blomberg s.blomberg1 at uq.edu.au
Mon Mar 7 06:17:33 CET 2011


Try

 t.test(buzz$var1, conf.level=.98)$conf.int[1:2]

Cheers,

Simon.
________________________________________
From: r-help-bounces at r-project.org [r-help-bounces at r-project.org] On Behalf Of Erin Hodgess [erinm.hodgess at gmail.com]
Sent: Monday, March 07, 2011 3:11 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:

> t.test(buzz$var1, conf.level=.98)$conf.int
[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



--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com

______________________________________________
R-help at 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.



More information about the R-help mailing list