Learn R Programming

tableMatrix (version 0.82.0)

merge.tableList: Merging tableList

Description

Merging tableList

tableMatrix method, merges tableMatrix or tableList objects with data.table, data.frame, tableList or tableMatrix.

Usage

# S3 method for tableList
merge(x, y, key, ...)

# S3 method for tableMatrix merge(x, y, key, ...)

Arguments

x

tableMatrix object

y

data.table, data.frame, tableList, tableMatrix object.

key

Shared columns as merging key.

...

Passed arguments.

Value

tableMatrix object.

Examples

Run this code
# NOT RUN {
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")

# }

Run the code above in your browser using DataLab