tab.tableMatrix: Get or set table attribute

Description Usage Arguments Value Examples

Description

tableMatrix method to get or set table attribute of tableMatrix object.

Usage

1
2
3
## S3 method for class 'tableMatrix'
tab(obj, matN = NULL, addRow = FALSE, resetN = TRUE,
  ...)

Arguments

obj

tableMatrix object.

matN

Integer. Matrix number in mat list.

addRow

Logical. If TRUE column tm.allRow with row indexes before subsetting is added.

resetN

Logical. Used when matN is specified. When FALSE tm.matN of returned tab won't be reset to 1. Default TRUE.

...

Passed arguments.

Value

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
data(images8By8)
data(images10By10)

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

# Table part of TM
tab(TM)

# Table part of TM corresponding to matrix type 2
tab(TM, 2)

# Add row indexes
tab(TM, 2, TRUE)

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