statsByGroup {GCDkit} | R Documentation |
Calculates simple descriptive statistics for individual columns of the given data matrix; optionally this can be done for each of the groups separately.
statsByGroup(dataset = WR, groups = NULL)
dataset |
numeric data matrix. |
groups |
a vector, in which is specified, for each sample, a group it belongs to. |
The function returns a list containing the calculated statistical parameters
respecting the current grouping. The statistical summary involves number of
observations, missing values, mean, standard deviation, minimum, 25% quartile,
median (= 50% quartile), 75% quartile and maximum. This is a core function
invoked both by summarySingle
and summarySingleByGroup
.
results |
a matrix with the means and single standard deviations of both variables for each of the individual groups |
Vojtěch Janoušek, vojtech.janousek@geology.cz
data(blatna) accessVar("blatna") groupsByLabel("Suite") statsByGroup() statsByGroup(WR[,LILE])