Learn R Programming

DiscriMiner (version 0.1-29)

groupQuants: Group Quantiles

Description

Calculates the specified quantiles for each group

Usage

groupQuants(variables, group, prob, na.rm = FALSE)

Arguments

variables
matrix or data frame with explanatory variables (may contain missing values)
group
vector or factor with group memberships
prob
probability value (numeric value between 0 and 1)
na.rm
logical indicating whether missing values should be removed

Value

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

See Also

groupMeans, groupVars, groupStds, groupMedians

Examples

Run this code
## Not run: 
#   # dataset iris
#   data(iris)
# 
#   # group quantile prob=20
#   groupQuants(iris[,1:4], iris[,5], prob=0.20)
#   ## End(Not run)

Run the code above in your browser using DataLab