Learn R Programming

gCMAP (version 1.16.0)

mergeCMAPs: This function merged two eSets.

Description

This function merges two eSet objects, if all of the following conditions are met:
  • Both objects 'x' and 'y' have to be instances of the same class.
  • 'x' and 'y' must be annotated with the same character string in their 'annotation' slots.
  • 'x' and 'y' must have the same AssayDataElementNames / channels.
  • 'x' and 'y' must have disctinct sampleNames.
  • 'x' and 'y' must have the same varLabels / pData columns.

Usage

mergeCMAPs(x, y)

Arguments

x
An eSet.
y
An eSet of the same class as 'x'

Value

An eSet of the same class as 'x' and 'y'.

Examples

Run this code
library(Biobase)
data( sample.ExpressionSet)

## Not run: 
# ## this doesn't work, because 'x' and 'y' have identical sampleNames
# mergeCMAPs( sample.ExpressionSet, sample.ExpressionSet)
# ## End(Not run)

y <- sample.ExpressionSet
sampleNames( y ) <- paste( sampleNames( y ), "y", sep=".")
mergeCMAPs( sample.ExpressionSet, y )

Run the code above in your browser using DataLab