ci_df | R Documentation |
Calculate mean with confidence intervals.
ci_df(.data, .summary_var, ..., ci = 0.95, groups_col = FALSE)
.data |
A data frame |
.summary_var |
Variable that is being summarized |
... |
Grouping variable(s) |
ci |
Confidence interval. Defaults to 0.95 |
groups_col |
List grouping variable under column named 'group'. Defaults to FALSE. |
A data frame with variables mean
, ci_low
, ci_high
, sd
, n
.
If the data frame is grouped, grouping variable will also be listed.
smean.cl.normal
which this function utilizes
ci_df(mtcars, mpg, cyl, gear)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.