Entering edit mode
Lourdes Peña Castillo
▴
140
@lourdes-pena-castillo-1305
Last seen 10.2 years ago
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