[.tableMatrix {tableMatrix} | R Documentation |
Bracket
Description
tableMatrix
method, passes data.table bracket functionality to the table attribute.
Assigning works only for tab
part and only i
and j
from data.table
is used. If j
is numeric, it corresponds to first attribute after tmName
names.
Bracket
Usage
## S3 method for class 'tableMatrix'
x[...]
## S3 replacement method for class 'tableMatrix'
x[i, j] <- value
Arguments
x |
|
... |
Passed arguments. |
i |
Same as |
j |
Same as |
value |
Value to be set. |
Value
tableMatrix
or vector.
Examples
data(images8By8)
# Create tableMatrix from images8By8
TM <- tableMatrix(images8By8, 1:3, 4:ncol(images8By8))
TM[2,1] <- "aaa"
TM[1,"dimX"] <- 1000
# setting row
TM[2,] <- list("aaa", 1000, 1000)
# setting column
TM[,2] <- 1
[Package tableMatrix version 0.82.0 Index]