This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Match multiple columns to find common elements

How to find common elements from multiple columns. say i have 20 columns(A,B,C...) & each column consists of number of elements. What i need is to find out common elements of column A in the rest of the remaining 19 columns & vice versa for other columns B,C..... & frequency

r

Could you please provide some input in the form of a table and the R code on what you have tried so far?

I'm struggling to import table here. I used %in% but it compares 2 column at a time. I want to compare all of them simultaneously in single run

You need to post more complete code snippets than just a line to get useful answers.

Run this in R: ?merge

No need to use all caps. You tagged this "R" meaning you are looking for R based code?

0 answers

No answers yet.

Log in to answer this question.