This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Remove the same rows in R

Hello guys,

I have an output like this :

 var1    var2     value
1 OTU0001 OTU0001 1.0000000
2 OTU0004 OTU0001 0.7349885
3 OTU0014 OTU0001 0.5338774
4 OTU0016 OTU0001 0.6671633
5 OTU0017 OTU0001 0.6087571
6 OTU0027 OTU0001 0.5649240
...

I would like to remove the identical rows (which are the correlations between OTUs). For example, I have the row "OTU0004 OTU0001 0.7349885" what I'll find few rows further in the form of "OTU0001 OTU0001 0.7349885" . If I can remove the same rows, I could divide my number of rows by two.

Thanks

r

How do you distinguish duplicated result and 2 rows with the exact same value ? Or you are assuming that same value = duplicate ?

Where are your data coming from ?

Hello vincentpailler!

We believe that this post does not fit the main topic of this site.

General programming query, please search stackoverflow and similar sites.

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!

0 answers

No answers yet.

Log in to answer this question.