mean_sd_tab {anticlust}R Documentation

Means and standard deviations by group variable formatted in table

Description

Means and standard deviations by group variable formatted in table

Usage

mean_sd_tab(features, groups, decimals = 2, na.rm = FALSE, return_diff = FALSE)

Arguments

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

Value

A table that illustrates means and standard deviations (in brackets)

Author(s)

Martin Papenberg martin.papenberg@hhu.de

Examples


data(iris)
mean_sd_tab(iris[, -5], iris[, 5])


[Package anticlust version 0.8.5 Index]