Entering edit mode
6.5 years ago
prakashpandey1111
▴
10
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
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
Run this in R:
?merge
You need to post more complete code snippets than just a line to get useful answers.
No need to use all caps. You tagged this "R" meaning you are looking for R based code?