How to take data from dataframe to put it in another dataframe in R?
0
0
Entering edit mode
2.2 years ago
Amr ▴ 180

How to take data from dataframe to put it in another dataframe in R?

I have a dataframe A has columns such as "Ensemble_Gene_id" and "Symbols", I have another dataframe B has only "Ensemble_Gene_id" but with filtered rows (not all rows same as dataframe A).

How to make column in dataframe B named "Symbols" which have the symbols of "Ensemble_Gene_id" in dataframe B? I want to take their symbols from dataframe A.

dataframe R • 862 views
ADD COMMENT
4
Entering edit mode

Maybe it should have been clearer with an example, but do you need merge(A,B,by="Ensemble_Gene_id") ?

ADD REPLY
0
Entering edit mode

Yes I guess this works too :) . it worked with left_join

Thanks

ADD REPLY
0
Entering edit mode

It's Ensembl, not Ensemble!

ADD REPLY
0
Entering edit mode

This is the answer?

ADD REPLY

Login before adding your answer.

Traffic: 2033 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