View source: R/descriptives_by_cluster.R
mean_sd_tab | R Documentation |
Means and standard deviations by group variable formatted in table
mean_sd_tab(features, groups, decimals = 2, na.rm = FALSE, return_diff = FALSE)
features |
A data frame of features |
groups |
A grouping vector |
decimals |
The number of decimals |
na.rm |
Should NAs be removed prior to computing stats (Default = FALSE) |
return_diff |
Boolean. Should an additional row be printed that contains the difference between minimum and maximum |
A table that illustrates means and standard deviations (in brackets)
Martin Papenberg martin.papenberg@hhu.de
data(iris)
mean_sd_tab(iris[, -5], iris[, 5])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.