Re: [R] a newbie seeking for a simple problem

2012-09-02 Thread Daniel Malter
As df2 has only one column and is thus effectively a variable in this case, you don't even need to merge. df1[df1$gene_name%in%df2$gene_name , ] should do. HTH, Daniel wong, honkit (Stephen) wrote > > Dear Experienced R users, > > I have a looks-like simple but complicated problem urgently

Re: [R] a newbie seeking for a simple problem

2012-09-02 Thread Jeff Newmiller
Read the posting guide... you need to provide more specific information such as sample data (?dput). For this problem you should probably read ?merge --- Jeff NewmillerThe . . Go Li

[R] a newbie seeking for a simple problem

2012-09-02 Thread Hon Kit (Stephen) Wong
Dear Experienced R users, I have a looks-like simple but complicated problem urgently needed to be solved. Below is the detail: I have two dataframes, df1, df2. df1 contains two column and many thousands rows: column 1 is a "gene_name", column 2 is "value". df2 contains only one column which i