mat.tableMatrix {tableMatrix}R Documentation

Get or set matrix attribute

Description

tableMatrix method to get or set matrix part attribute. Matrix part is a list of matrices.

Usage

## S3 method for class 'tableMatrix'
mat(obj, matN = NULL, ...)

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

Arguments

obj

tableMatrix object.

matN

Integer. Matrix number in the matrix part list.

...

Passed arguments.

value

List of matrices.

Value

Full matrix part of tableMatrix or a matrix.

Examples


data(images8By8)

# Create tableMatrix from images8By8 and images10By10
TM <- tableMatrix(list(images8By8, images10By10), list(1:3, 1:3),
list(4:ncol(images8By8),4:ncol(images10By10)))

# Full matrix part of TM
mat(TM)

# Matrix part of TM corresponding to matrix type 2
mat(TM, 2)


[Package tableMatrix version 0.82.0 Index]