Learn R Programming

nat (version 1.8.24)

union: Find the union of two collections of objects

Description

Find the union of two collections of objects

Usage

union(x, y, ...)

# S3 method for default union(x, y, ...)

# S3 method for neuronlist union(x, y, ...)

Value

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

Arguments

x

the first collection to consider.

y

the second collection to consider.

...

additional arguments passed to methods

Details

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

See Also