Description Usage Arguments Value Examples
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
1 2 3 4 5 | ## S3 method for class 'tableList'
x[...]
## S3 replacement method for class 'tableList'
x[i, j] <- value
|
x |
|
... |
Passed arguments. |
i |
Same as |
j |
Same as |
value |
Value to be set. |
tableList
or vector.
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.