matDim.tableMatrix: Get or set matDim attribute

Description Usage Arguments Value Examples

Description

tableMatrix method to get or set matDim attribute.

Usage

1
2
3
4
5
## S3 method for class 'tableMatrix'
matDim(obj, matN = NULL, resetN = FALSE, ...)

## S3 replacement method for class 'tableMatrix'
matDim(obj) <- value

Arguments

obj

tableMatrix object.

matN

Integer. Matrix number in the matrix part list.

resetN

Logical. When FALSE tm.matN of returned matDim won't be reset to 1.

...

Passed arguments.

value

data.table

Value

Full dimensions part of tableMatrix or a subset of dimensions part.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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)

tableMatrix documentation built on May 1, 2019, 8:42 p.m.