unionN: Union of 2 or more vectors

Description Usage Arguments Details Value Author(s) See Also Examples

Description

This function extends the union function to allow more than 2 vectors to be unioned. In practice, we do not use union at all, but a more optimised algorithm.

Usage

1

Arguments

...

at least 2 vectors to be unioned

Details

Values are returned in the same order that they are first detected when
iterating though ...

Value

A vector containing the union of all the input vectors.

Author(s)

Mark Cowley

See Also

intersectN, union

Examples

1
2
3
4
a <- letters[1:15]
b <- letters[5:20]
c <- letters[10:25]
unionN(a, b, c)

drmjc/mjcbase documentation built on May 15, 2019, 2:27 p.m.