Description Usage Arguments Value Examples
tableMatrix
method to get row dimensions from matDim attribute.
1 2 |
obj |
|
i |
Integer. Row index in |
repo |
Numeric vector. Vector with 2 elements - matN and matRow. |
... |
Passed arguments. |
Dimensions corresponding to the row.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | data(images8By8)
data(images10By10)
# Create tableMatrix from images8By8 and images10By10
TM <- tableMatrix(list(images8By8, images10By10),
list(r=c(1,3), r=c(1,3)),
list(r=c(4,ncol(images8By8)),r=c(4,ncol(images10By10))),list(c(8,8),c(10,10)),
dimNames =c("dimX", "dimY"))
matDim(TM)
tab(TM)
# Dimensions corresponding to row 1 in tab(TM)
getRowDim(TM, 1)
# Dimensions corresponding to row 91 in tab(TM)
getRowDim(TM, 91)
# Dimensions corresponding to row 1 in second matrix in mat(TM)
getRowDim(TM, repo=c(2,1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.