Question: Match multiple columns to find common elements

0

prakashpandey1111 •

**0**wrote: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

ADD COMMENT
• link
•
modified 12 months ago
by
genomax ♦

**69k**• written 12 months ago by prakashpandey1111 •**0**
Could you please provide some input in the form of a table and the R code on what you have tried so far?

5.3kI'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

0Run this in R:

`?merge`

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

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

69k