I used the following code to retrieve a confidence level for my data:
out <- t.test(my_data$my_col, conf.level = 0.95)
out
This returns something like:
data: my_data$my_column
t = 30, df = 20, p-value < 2.1e-14
alternative hypothesis: true mean is not equal to 0
95 percent confidence interval:
62.23191 80.11201
sample estimates:
mean of x
75.10457
I've tried doing:
out[4][1]
But this returns:
$conf.int
[1] 62.23191 80.11201
attr(,"conf.level")
[1] 0.95
How do I specifically get the lower bound and upper bound from this respectively? (i.e. how do I extract 62.23191 and 80.11201 as variables?)