merge,SurvivalExperiment,SurvivalExperiment-method {PDATK} | R Documentation

## Merge two `SurvivalExperiments`, subsetting to shared rows and columns

### Description

Merge two `SurvivalExperiments`, subsetting to shared rows and columns

### Usage

    ## S4 method for signature 'SurvivalExperiment,SurvivalExperiment'
    merge(x, y, cohortNames)

### Arguments

`x` | A `SurvivalExperiment`.
`y` | A `SurvivalExperiment`.
`cohortNames` | An optional `character` vector specifying the a name for each `SurvivalExperiment`.

### Value

A `SurvivalExperiment` object with merge data from x and y, and the assay from each in the `assays` slot.

### Examples

    data(sampleICGCmicro)
    survExp2 <- sampleICGCmicro
    mergedSurvExp <- merge(survExp2, sampleICGCmicro,
      cohortNames=c('copyICGCmicro', 'ICGCmicro'))
    mergedSurvExp

[Package PDATK version 1.2.0 Index]