union {nat}R Documentation

Find the union of two collections of objects

Description

Find the union of two collections of objects

Usage

union(x, y, ...)

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

## S3 method for class 'neuronlist'
union(x, 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.

Value

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

See Also

union


[Package nat version 1.8.24 Index]