Learn R Programming

Patterns (version 1.1)

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

Description

Makes the union between two micro_array objects.

Arguments

Methods

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

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

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

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

Examples

Run this code
# NOT RUN {
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