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