File: matrixSubgroups.Rd

package info (click to toggle)
r-cran-tcr 2.3.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, trixie
  • size: 2,316 kB
  • sloc: cpp: 187; makefile: 5
file content (31 lines) | stat: -rw-r--r-- 940 bytes parent folder | download | duplicates (2)
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}
}