Confidence Interval of Sample Means using R
<p>My dataframe contains sampling means of 500 samples of size 100 each. Below is the snapshot. I need to calculate the confidence interval at 90/95/99 for mean.</p>

<pre><code>head(Means_df)
  Means
1 14997
2 11655
3 12471
4 12527
5 13810
6 13099
</code></pre>

<p>I am  using the below code but only getting the confidence interval for one row only. Can anyone help me with the code?</p>

<pre><code>tint &lt;- matrix(NA, nrow = dim(Means_df)[2], ncol = 2)
for (i in 1:dim(Means_df)[2]) {
  temp &lt;- t.test(Means_df[, i], conf.level = 0.9)
  tint[i, ] &lt;- temp$conf.int
}
colnames(tint) &lt;- c("lcl", "ucl")
</code></pre>