matDim.tableMatrix {tableMatrix} | R Documentation |
tableMatrix
method to get or set matDim attribute.
## S3 method for class 'tableMatrix'
matDim(obj, matN = NULL, resetN = FALSE, ...)
## S3 replacement method for class 'tableMatrix'
matDim(obj) <- value
obj |
|
matN |
Integer. Matrix number in the matrix part list. |
resetN |
Logical. When FALSE |
... |
Passed arguments. |
value |
data.table |
Full dimensions part of tableMatrix
or a subset of dimensions part.
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)