ExplicitRepresentationAccessors {kebabs} | R Documentation |
ExplicitRepresentation Accessors
## S4 methods for signature 'ExplicitRepresentation' ## x[i,j] ## further methods see below ## S4 method for signature 'matrix,dgRMatrix' x %*% y ## S4 method for signature 'dgRMatrix,numeric' x %*% y
x |
an explicit representation in dense or sparse format |
i |
integer vector or character vector with a subset of the sample indices or names |
y |
in the first case and explicit representation and |
j |
integer vector or character vector with a subset of the feature indices or names |
see details above
x[i,]
:
return a KernelMatrix
object that only contains the rows selected
with the subsetting parameter i
. This parameter can be a numeric
vector with indices or a character vector which is matched against the
names of x
.
x[,j]
:
return a KernelMatrix
object that only contains the columns
selected with the subsetting parameter j
. This parameter can be a
numeric vector with indices or a character vector which is matched against
the names of x
.
x[i,j]
:
return a KernelMatrix
object that only contains the rows selected
with the subsetting parameter i
and columns selected by j
.
Both parameters can be a numeric vector with indices or a character vector
which is matched against the names of x
.
%*%
:
this function provides the multiplication of a dgRMatrix
or
a sparse explicit representation (which is derived from dgRMatrix
)
with a matrix or a vector. This functionality is not available in package
Matrix for a dgRMatrix
.
Johannes Palme <kebabs@bioinf.jku.at>
http://www.bioinf.jku.at/software/kebabs
J. Palme, S. Hochreiter, and U. Bodenhofer (2015) KeBABS: an R package
for kernel-based analysis of biological sequences.
Bioinformatics, 31(15):2574-2576, 2015.
DOI: 10.1093/bioinformatics/btv176.