R/intersection.R
sets_intersection.Rd
set_intersection returns the common elements in all sets. This function mimics Python's set.intersection() method.
set_intersection
set.intersection()
sets_intersection(x, ...)
A vector.
Additional vectors to find the intersection with.
A vector containing elements common to all sets.
Python set.intersection() documentation
sets_intersection(c(1, 2, 3), c(2, 3, 4), c(3, 4, 5)) #> [1] 3