intersect: Find the intersection of two collections of objects

View source: R/neuronlist_sets.R

intersectR Documentation

Find the intersection of two collections of objects

Description

Find the intersection of two collections of objects

Usage

intersect(x, y, ...)

## Default S3 method:
intersect(x, y, ...)

## S3 method for class 'neuronlist'
intersect(x, y, ...)

Arguments

x

the first collection to consider.

y

the second collection to consider.

...

additional arguments passed to methods

Details

Note that intersect.default calls base::intersect to ensure consistent behaviour for regular vectors.

Value

A collection of the same mode as x that contains all elements of x that are also present in y.

See Also

intersect


nat documentation built on Aug. 25, 2023, 5:16 p.m.