[BioC] swaping values in a RGList object...

Lourdes Peña Castillo lourdes.pena at gmail.com
Fri Jul 1 00:35:55 CEST 2005


Hello Everyone,

I am analyzing micro-array data using limma, and I need to swap 
intensity data between arrays  (because the samples were mislabeled) .
Something like:

R1 <- RG[,1]$R
R2 <- RG[,2]$R
RG[,1]$R <-R2
RG[,2]$R <-R1

But I get the message: 

 Error: incorrect number of subscripts on matrix

I have also tried replacing the values using  a for-loop but got the same error.

for (i in 1:length(RG[,1]$R)) {
 RG[,1]$R[i] <- R2[i]
}

Do you know how I can swap the values? 

Thanks!

Lourdes



More information about the Bioconductor mailing list