Entering edit mode
10.1 years ago
mjoyraj
▴
80
I have a two column dataset as given below. I want to add a third column which will contain all genes from column 1 and 2, but none of the genes should repeat. How can I do this in R?
ID ID2
Gene1 Gene3
Gene1 Gene5
Gene2 Gene7
Gene2 Gene4
Gene3 Gene6
Gene3 Gene8
please add an example of column 3
The example of column 3 is given below. It contains all characters of col 1 and 2 but genes names do not repeat