-3

I have a set of 20 column, each contains number value. I would like to have a function in excel or in r or somewhere else to extract the shared values among all the columns.

Several of the online Venn tools can visualize and list among up to 6 columns.

Any tool?

Thanks

M. Samir
  • 11
  • 2

1 Answers1

1

in R, we can use intersect with Reduce to get the common values across all the columns

Reduce(intersect, dftest)

data

dftest <- data.frame(col1 = 1:5, col2 = 2:6, col3 = 3:7)
akrun
  • 874,273
  • 37
  • 540
  • 662