[.tableList {tableMatrix}R Documentation

Bracket

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

## 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


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


[Package tableMatrix version 0.82.0 Index]