View source: R/summarise_statistics.R
summarise_statistics | R Documentation |
Computes descriptive statistics for numeric data. Optionally groups by a variable and includes Shapiro-Wilk and group significance testing. Can color console output for significant differences.
summarise_statistics(
data,
group_var = NULL,
normality_test = FALSE,
group_test = FALSE,
show_colors = TRUE
)
data |
A numeric vector, matrix, or data frame. |
group_var |
Optional. A character name of a grouping variable. |
normality_test |
Logical. If TRUE, performs Shapiro-Wilk test for normality. |
group_test |
Logical. If TRUE and 'group_var' is set, performs group-wise significance tests (t-test, ANOVA, etc.). |
show_colors |
Logical. If TRUE and 'group_test' is TRUE, prints colored console output for significant group results. Default is TRUE. |
A tibble with descriptive statistics and optional test results per numeric variable.
summarise_statistics(iris, group_var = "Species", group_test = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.