mat.tableMatrix: Get or set matrix attribute

Description Usage Arguments Value Examples

Description

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

Usage

1
2
3
4
5
## 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

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

InferenceTechnologies/tableMatrix documentation built on May 8, 2019, 1:39 p.m.