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
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
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
3 matches
Mail list logo