Learn R Programming

tableMatrix (version 0.82.0)

matDim.tableMatrix: Get or set matDim attribute

Description

tableMatrix method to get or set matDim attribute.

Usage

# S3 method for tableMatrix
matDim(obj, matN = NULL, resetN = FALSE, ...)

# S3 method for 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

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab