File: apply.symm.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 (35 lines) | stat: -rw-r--r-- 1,010 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
32
33
34
35
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datatools.R
\name{apply.symm}
\alias{apply.symm}
\alias{apply.asymm}
\title{Apply function to every pair of data frames from a list.}
\usage{
apply.symm(.datalist, .fun, ..., .diag = NA, .verbose = T)

apply.asymm(.datalist, .fun, ..., .diag = NA, .verbose = T)
}
\arguments{
\item{.datalist}{List with some data.frames.}

\item{.fun}{Function to apply, which return basic class value.}

\item{...}{Arguments passsed to .fun.}

\item{.diag}{Either NA for NA or something else != NULL for .fun(x,x).}

\item{.verbose}{if T then output a progress bar.}
}
\value{
Matrix with values M[i,j] = fun(datalist[i], datalist[j])
}
\description{
Apply the given function to every pair in the given datalist. Function either
symmetrical (i.e. fun(x,y) == fun(y,x)) or assymmetrical (i.e. fun(x,y) != fun(y,x)).
}
\examples{
\dontrun{
# equivalent to intersectClonesets(immdata, 'a0e')
apply.symm(immdata, intersectClonesets, .type = 'a0e')
}
}