Question: (Closed) Find unique values in two columns in a data frame
0
gravatar for saswatimahapatra2015
13 months 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 • 272 views
ADD COMMENTlink modified 13 months ago by benformatics2.0k • written 13 months ago by saswatimahapatra20150

What have you already tried... ?

ADD REPLYlink modified 13 months ago • written 13 months ago by Kevin Blighe69k

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 13 months ago by lakhujanivijay5.4k
0
gravatar for benformatics
13 months ago by
benformatics2.0k
ETH Zurich
benformatics2.0k wrote:
data.frame(unique(unlist(YOUR.DATA.FRAME)))
ADD COMMENTlink modified 13 months ago by ATpoint44k • written 13 months ago by benformatics2.0k
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: 1090 users visited in the last hour
_