Find unique values in two columns in a data frame
I am having a data frame with two columns
From To
A F
B H
D B
T A
I need the unique items collectively considering the two columns "From" and "To". i.e the output should be one column with values
A
B
D
T
F
H
• 1,001 views
•
link
1 answer
data.frame(unique(unlist(YOUR.DATA.FRAME)))
• 0 views
•
link
Log in to answer this question.
What have you already tried... ?
Hello saswatimahapatra2015!
We believe that this post does not fit the main topic of this site.
Not a bioinformatics post
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!