Basic question: Varying sample numbers of the groups
0
0
Entering edit mode
6.3 years ago
ulapei ▴ 20

Hi,

Sorry for the simple question. I am analysing microarrays and I had to exclude a few due to the outlier detection. How do I adjust the code below, so that it recognizes that now group 1 has 6 samples and group 2 has 4 samples, instead of 7 each?

pData(eset)$Condition = rep(paste(1:2), each = 7)

Thanks!

arrayQualityMetrics r basic • 893 views
ADD COMMENT
0
Entering edit mode
paste(c(rep(1,6),rep(2,4)))
 [1] "1" "1" "1" "1" "1" "1" "2" "2" "2" "2"

rep(paste(1:2), each = 7)
 [1] "1" "1" "1" "1" "1" "1" "1" "2" "2" "2" "2" "2" "2" "2"
ADD REPLY

Login before adding your answer.

Traffic: 1630 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6