merge.gct {cmapR} | R Documentation

## Merge two GCT objects together

### Description

Merge two GCT objects together

### Usage

    ## S3 method for class 'gct'
    merge(...)

    merge_gct(g1, g2, dim = "row", matrix_only = FALSE)

    ## S4 method for signature 'GCT,GCT'
    merge_gct(g1, g2, dim = "row", matrix_only = FALSE)

### Arguments

`...` | arguments passed on to `merge_gct`
`g1` | the first GCT object
`g2` | the second GCT object
`dim` | the dimension on which to merge (row or column)
`matrix_only` | boolean idicating whether to keep only the data matrices from `g1` and `g2` and ignore their row and column meta data

### Value

a GCT object

### See Also

Other GCT utilities: `annotate.gct()`, `melt.gct()`, `rank.gct()`, `subset.gct()`

### Examples

    # take the first 10 and last 10 rows of an object
    # and merge them back together
    (a <- subset_gct(ds, rid=1:10))
    (b <- subset_gct(ds, rid=969:978))
    (merged <- merge_gct(a, b, dim="row"))

[Package cmapR version 1.2.1 Index]