1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datatools.R
\name{matrixSubgroups}
\alias{matrixSubgroups}
\title{Get all values from the matrix corresponding to specific groups.}
\usage{
matrixSubgroups(.mat, .groups = NA, .symm = T, .diag = F)
}
\arguments{
\item{.mat}{Input matrix with row and columns names.}
\item{.groups}{Named list with character vectors for names of elements for each group.}
\item{.symm}{If T than remove symmetrical values from the input matrix.}
\item{.diag}{If .symm if T and .diag is F than remove diagonal values.}
}
\description{
Split all matrix values to groups and return them as a data frame with two columns: for values and for group names.
}
\examples{
\dontrun{
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)
}
}
\seealso{
\link{repOverlap}, \link{vis.group.boxplot}
}
|