Learn R Programming

DiscriMiner (version 0.1-29)

groupStds: Group Standard Deviations

Description

Calculates the standard deviations for each group

Usage

groupStds(variables, group, na.rm = FALSE)

Arguments

variables
matrix or data frame with explanatory variables (may contain missing values)
group
vector or factor with group memberships
na.rm
logical indicating whether missing values should be removed

Value

matrix of group standard deviations (with variables in the rows, and groups in the columns)

See Also

groupMeans, groupVars, groupMedians, groupQuants

Examples

Run this code
## Not run: 
#   # dataset iris
#   data(iris)
# 
#   # group standard deviations
#   groupStds(iris[,1:4], iris[,5])
#   ## End(Not run)

Run the code above in your browser using DataLab