merge.tableList {tableMatrix} | R Documentation |
Merging tableList
tableMatrix
method, merges tableMatrix
or tableList
objects with data.table,
data.frame, tableList
or tableMatrix
.
## S3 method for class 'tableList'
merge(x, y, key, ...)
## S3 method for class 'tableMatrix'
merge(x, y, key, ...)
x |
|
y |
data.table, data.frame, |
key |
Shared columns as merging key. |
... |
Passed arguments. |
tableMatrix
object.
data(images8By8)
# Create tableMatrix from images8By8
TM <- tableMatrix(images8By8, c("direction","dimX","dimY"), 4:ncol(images8By8), c(8,8))
# Merge tableMatrix object with a data.frame
merge(TM, data.frame(direction="down", flag=TRUE), key="direction")