Find the intersection of two collections of objects
intersect(x, y, ...)
# S3 method for default
intersect(x, y, ...)
# S3 method for neuronlist
intersect(x, y, ...)
the first collection to consider.
the second collection to consider.
additional arguments passed to methods
A collection of the same mode as x
that contains all elements
of x
that are also present in y
.
Note that intersect.default calls base::intersect to ensure consistent behaviour for regular vectors.