Question: (Closed) Find unique values in two columns in a data frame
0
gravatar for saswatimahapatra2015
9 weeks ago by
saswatimahapatra20150 wrote:

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
gene • 82 views
ADD COMMENTlink modified 9 weeks ago by benformatics1.4k • written 9 weeks ago by saswatimahapatra20150

What have you already tried... ?

ADD REPLYlink modified 9 weeks ago • written 9 weeks ago by Kevin Blighe54k

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!

ADD REPLYlink written 9 weeks ago by lakhujanivijay4.7k
0
gravatar for benformatics
9 weeks ago by
benformatics1.4k
ETH Zurich
benformatics1.4k wrote:
data.frame(unique(unlist(YOUR.DATA.FRAME)))
ADD COMMENTlink modified 9 weeks ago by ATpoint29k • written 9 weeks ago by benformatics1.4k
Please log in to add an answer.
The thread is closed. No new answers may be added.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1162 users visited in the last hour