sub-.tableList: Bracket

Description Usage Arguments Value Examples

Description

tableList method, passes data.table bracket functionality to the table attribute. Usage is the same as in data.table[] and data.table[] <-. Assigning works only for tab part and only i and j from data.table is used.

Bracket

Usage

1
2
3
4
5
## S3 method for class 'tableList'
x[...]

## S3 replacement method for class 'tableList'
x[i, j] <- value

Arguments

x

tableList object.

...

Passed arguments.

i

Same as i in data.table

j

Same as j in data.table

value

Value to be set.

Value

tableList or vector.

Examples

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

# Create tableList from images8By8[,1:3]
TL <- tableList(images8By8[,1:3])

# Apply data.table bracket on a tableList object
TL[direction=="both"]


TL[2,1] <- "aaa"

# setting row
TL[2,] <- list("aaa", 1000, 1000)

# setting column
TL[,2] <- 1

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