Say I have 4 vectors:
a <- c("Mark","Kate","Greg", "Mathew")
b <- c("Mark","Tobias","Mary", "Mathew", "Greg")
c <- c("Mary","Chuck","Igor", "Mathew", "Robin", "Tobias")
d <- c("Kate","Mark","Igor", "Greg", "Robin", "Mathew")
I would like to select overlapping names from these vectors with the assumption that the name should appear in at least 3 of these 4 vectors. Of course, I would like it to be easy to play with the percentage of vectors, the name should be present.
Is there any way to change intersect?
source
share