Is this what you want:  It turns out that clusterX was a dataframe  -

> sd_all[sd_all$X %in% clusterX$X,]
         X mydata.mean.a mydata.mean.x mydata.sd.a mydata.sd.x
mydata.log2.mean.a mydata.log2.mean.x
3  VS_0225          2.00          1.33        0.17        0.14
-0.01              -0.59
6  VS_0228          1.97          1.99        0.17        0.17
-0.02              -0.02
9  VS_0233          1.95          1.31        0.23        0.20
-0.05              -0.63
10 VS_0235          1.95          1.31        0.20        0.18
-0.04              -0.63
12 VS_0237          1.94          1.97        0.22        0.21
-0.05              -0.03
   mydata.log2.sd.a mydata.log2.sd.x mydata.log2.median.a
mydata.log2.median.x mydata.log2.mad.a
3              0.12             0.16                 0.00
-0.58              0.12
6              0.13             0.13                -0.01
-0.01              0.10
9              0.19             0.24                -0.01
-0.57              0.13
10             0.16             0.21                -0.01
-0.58              0.12
12             0.17             0.17                -0.01
0.00              0.13
   mydata.log2.mad.x   snr
3               0.14  4.57
6               0.11 -0.01
9               0.18  3.63
10              0.16  4.13
12              0.13 -0.08
> clusterX
        X
1 VS_0193
2 VS_0203
3 VS_0211
4 VS_0225
5 VS_0228
6 VS_0233
7 VS_0235
8 VS_0237


On Tue, May 20, 2008 at 7:20 AM, Sebastian Eck <
Sebastian.Eck@helmholtz-muenchen.de> wrote:

>
> Hi,
>
>
> sd_all_clusterX<-sd_all[(as.character(clusterX)%in%as.character(sd_all$X)),]
> again selects everything from sd_all, whereas
>
>
> sd_all_clusterX<-sd_all[(as.character(sd_all$X)%in%as.character(ClusterX)),]
> results in sd_all_clusterX having 681 entries, what is smaller than the
> whole dataset (707 entries) but much larger than the actual 127
> clusterelements I want to select.
>
> Tank you that you are trying to solve the problem, and sorry for the
> trouble, I included a sample for my data now:
> Cluster:  http://www.nabble.com/file/p17338101/clusterX clusterX
> sd_all_sample:  http://www.nabble.com/file/p17338101/sd_all_sample
> sd_all_sample
>
> Again thank you for your help,
>
> Sebastian
>
>
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Select-certain-elements-from-dataframe-tp17314209p17338101.html
>  Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?

	[[alternative HTML version deleted]]

