groupVars: Group Variances

Description Usage Arguments Value Author(s) See Also Examples

View source: R/groupVars.R

Description

Calculates the variances for each group

Usage

1
  groupVars(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 variances (with variables in the rows, and groups in the columns)

Author(s)

Gaston Sanchez

See Also

groupMeans, groupStds, groupMedians, groupQuants

Examples

1
2
3
4
5
6
7
8
## Not run: 
  # dataset iris
  data(iris)

  # group variances
  groupVars(iris[,1:4], iris[,5])
  
## End(Not run)

gastonstat/DiscriMiner documentation built on Feb. 27, 2021, 4:58 a.m.