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, ...)

Arguments

x

the first collection to consider.

y

the second collection to consider.

...

additional arguments passed to methods

Value

A collection of the same mode as x that contains all unique elements of x and y.

Details

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

See also