[BioC] comparing data frames

Arne.Muller at aventis.com Arne.Muller at aventis.com
Tue May 4 18:12:38 CEST 2004

> I have two data frames with a name column containing affy 
> probeset ids. I would like to pull out the ids (just the ids) 
> which are common in both data frames. (Actually, I could just 
> have to character vectors and would like to print the common 
> elements).
> I tried this approach:
> for (elx in x) {for (ely in y) {if (elx==ely) print(ely)}}
> x, y : character vectors



or better type help(intersect) which gives you the help for set operations in R.



> This prints out the correct result but I am not able to 
> assign the resulting probesets and it also seems quite an 
> inelegant solution.
> Thank you for your help.
> Juerg Straubhaar
> UMass Med School
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://www.stat.math.ethz.ch/mailman/listinfo/bioconductor

More information about the Bioconductor mailing list