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.
Maybe it should have been clearer with an example, but do you need
merge(A,B,by="Ensemble_Gene_id")
?Yes I guess this works too :) . it worked with left_join
Thanks
It's Ensembl, not Ensemble!
This is the answer?