Description Usage Arguments Details Value Author(s) See Also Examples
Merge two microarray data sets represented by RGLists in possibly irregular order.
1 2 |
x |
data object of class |
y |
data object of same class as |
... |
other arguments are accepted but not used at present |
RGList
, MAList
, EListRaw
and EList
data objects are lists containing numeric matrices all of the same dimensions.
The data objects are merged by merging each of the components by row names or, if there are no row names, by IDs in the genes
component.
Unlike when using cbind
, row names are not required to be in the same order or to be unique.
In the case of repeated row names, the order of the rows with repeated names in preserved.
This means that the first occurrence of each name in x
is matched with the first occurrence of the same name in y
, the second with the second, and so on.
The final vector of row names is the same as in x
.
Note: if the objects contain the same number of genes in the same order then the appropriate function to combine them is cbind
rather than merge
.
An merged object of the same class as x
and y
with the same components as x
.
Component matrices have the same rows names as in x
but columns from y
as well as from x
.
Gordon Smyth
R base provides a merge
method for merging data.frames.
An overview of limma commands for reading, subsetting and merging data is given in 03.ReadingData.
1 2 3 4 5 6 7 8 9 10 |
An object of class "MAList"
$M
[,1] [,2] [,3] [,4]
a 11 11 22 22
a 12 12 23 23
b 13 13 21 21
c 14 14 24 24
$A
[,1] [,2] [,3] [,4]
a 11 11 22 22
a 12 12 23 23
b 13 13 21 21
c 14 14 24 24
An object of class "MAList"
$M
[,1] [,2] [,3] [,4]
b 21 21 13 13
a 22 22 11 11
a 23 23 12 12
c 24 24 14 14
$A
[,1] [,2] [,3] [,4]
b 21 21 13 13
a 22 22 11 11
a 23 23 12 12
c 24 24 14 14
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.