Learn R Programming

tcR (version 2.2.4)

matrixSubgroups: Get all values from the matrix corresponding to specific groups.

Description

Split all matrix values to groups and return them as a data frame with two columns: for values and for group names.

Usage

matrixSubgroups(.mat, .groups = NA, .symm = T, .diag = F)

Arguments

.mat

Input matrix with row and columns names.

.groups

Named list with character vectors for names of elements for each group.

.symm

If T than remove symmetrical values from the input matrix.

.diag

If .symm if T and .diag is F than remove diagonal values.

See Also

repOverlap, vis.group.boxplot

Examples

Run this code
# NOT RUN {
data(twb)
ov <- repOverlap(twb)
sb <- matrixSubgroups(ov, list(tw1 = c('Subj.A', 'Subj.B'), tw2 = c('Subj.C', 'Subj.D')));
vis.group.boxplot(sb)
# }

Run the code above in your browser using DataLab