Learn R Programming

Patterns (version 1.3)

unionMicro-methods: Makes the union between two micro_array objects.

Description

Makes the union between two micro_array objects.

Usage

# S4 method for micro_array,micro_array
unionMicro(M1, M2)

Arguments

M1

a micro-array or a list of micro-arrays

M2

a micro-array or nothing if M1 is a list of micro-arrays

Methods

list("signature(M1 = \"micro_array\", M2 = \"micro_array\")")

Returns a micro_array object which is the union of M1 and M2.

list("signature(M1 = \"list\", M2 = \"ANY\")")

Returns a micro_array object which is the union of the elements of M1.

Author

Bertrand Frederic, Myriam Maumy-Bertrand.

Examples

Run this code

if(require(CascadeData)){
data(micro_S, package="CascadeData")
#Create another microarray object with 100 genes
Mbis<-M<-as.micro_array(micro_S[1:100,],1:4,6)
#Rename the 100 genes
Mbis@name<-paste(M@name,"bis")
rownames(Mbis@microarray) <- Mbis@name
#Union (merge without duplicated names) of the two microarrays. 
str(unionMicro(M,Mbis))
}

Run the code above in your browser using DataLab