Erin
You could use
as.vector(t.test(buzz$var1, conf.level=.98)$conf.int)
Bill Venables.
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of Erin Hodgess
Sent: Monday, 7 March 2011 3:12 PM
To: R help
Subject: [R] attr question
Dear
On Mar 7, 2011, at 10:44 AM, MacQueen, Don wrote:
One way would be to wrap it in as.vector()
as.vector( t.test(rnorm(5),rnorm(5))$conf.int )
[1] -0.9718231 1.2267976
Or even c():
> c( t.test(rnorm(5),rnorm(5))$conf.int )
[1] -1.055843 1.742806
-Don
On 3/6/11 9:11 PM, "Erin Hodgess"
One way would be to wrap it in as.vector()
> as.vector( t.test(rnorm(5),rnorm(5))$conf.int )
[1] -0.9718231 1.2267976
-Don
On 3/6/11 9:11 PM, "Erin Hodgess" wrote:
>Dear R People:
>
>When I want to produce a small sample confidence interval using
>t.test, I get the following:
>
>> t.test(buz
On 07/03/2011 12:11 AM, Erin Hodgess wrote:
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 printin
Try
t.test(buzz$var1, conf.level=.98)$conf.int[1:2]
Cheers,
Simon.
From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On Behalf Of
Erin Hodgess [erinm.hodg...@gmail.com]
Sent: Monday, March 07, 2011 3:11 PM
To: R help
Subject: [R] attr
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 simp
6 matches
Mail list logo