matDim.tableMatrix {tableMatrix} | R Documentation |
Get or set matDim attribute
Description
tableMatrix
method to get or set matDim attribute.
Usage
## S3 method for class 'tableMatrix'
matDim(obj, matN = NULL, resetN = FALSE, ...)
## S3 replacement method for class 'tableMatrix'
matDim(obj) <- value
Arguments
obj |
|
matN |
Integer. Matrix number in the matrix part list. |
resetN |
Logical. When FALSE |
... |
Passed arguments. |
value |
data.table |
Value
Full dimensions part of tableMatrix
or a subset of dimensions part.
Examples
data(images8By8)
data(images10By10)
# Create tableMatrix from images8By8 and images10By10
TM <- tableMatrix(list(images8By8, images10By10), list(1:3, 1:3),
list(r=c(4,ncol(images8By8)),r=c(4,ncol(images10By10))))
# Dimensions part of TM
matDim(TM)
# Dimensions part of TM corresponding to matrix type 2
matDim(TM, 2)
[Package tableMatrix version 0.82.0 Index]