Skip to contents

Endomorphically merge assays within a LongTable or inheriting class

Usage

# S4 method for LongTable
mergeAssays(object, x, y, target = x, ..., metadata = FALSE)

Arguments

object

A LongTable or inheriting class.

x

character(1) A valid assay name in object.

y

character(1) A valid assay name in object.

target

character(1) Name of the assay to assign the result to. Can be a new or existing assay. Defaults to x.

...

Fallthrough arguments to merge.data.table to specify the join type. Use this to specify which columns to merge on. If excluded, defaults to by=assayKeys(objecty, y).

metadata

logical A logical vector indicating whether to attach metadata to either assay before the merge occurs. If only one value is passed that value is used for both assays. Defaults to FALSE.

Value

A copy of object with assays x and y merged and assigned to target.

See also

merge.data.table

Author

Christopher Eeles