unionOmics-methods {Patterns} | R Documentation |
Makes the union between two omics_array objects.
Description
Makes the union between two omics_array objects.
Usage
## S4 method for signature 'omics_array,omics_array'
unionOmics(M1, M2)
Arguments
M1 |
a omics-array or a list of omics-arrays |
M2 |
a omics-array or nothing if M1 is a list of omics-arrays |
Methods
- list("signature(M1 = \"omics_array\", M2 = \"omics_array\")")
-
Returns a omics_array object which is the union of M1 and M2.
- list("signature(M1 = \"list\", M2 = \"ANY\")")
Returns a omics_array object which is the union of the elements of M1.
Author(s)
Bertrand Frederic, Myriam Maumy-Bertrand.
Examples
if(require(CascadeData)){
data(micro_S, package="CascadeData")
#Create another omicsarray object with 100 genes
Mbis<-M<-as.omics_array(micro_S[1:100,],1:4,6)
#Rename the 100 genes
Mbis@name<-paste(M@name,"bis")
rownames(Mbis@omicsarray) <- Mbis@name
#Union (merge without duplicated names) of the two omicsarrays.
str(unionOmics(M,Mbis))
}
[Package Patterns version 1.5 Index]