getRowRepo.tableMatrix: Get row repo

Description Usage Arguments Value Examples

Description

tableMatrix method to get row repo (vector of matN and matRow) for the matrix attribute

Usage

1
2
## S3 method for class 'tableMatrix'
getRowRepo(obj, i = NULL, repo = NULL, ...)

Arguments

obj

tableMatrix object.

i

Integer. Row index in tab.

repo

Numeric vector. Vector with 2 elements - matN and matRow.

...

Passed arguments.

Value

Vector of matN and matRow.

Examples

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

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

# Row 2 in tab(TM) corresponds to first matrix, second row 
getRowRepo(TM, 2)

# Row 91 in tab(TM) corresponds to second matrix, first row 
getRowRepo(TM, 91)

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