Description Usage Arguments Value Author(s) See Also Examples

The `base::union`

function removes duplicates per algebraic set theory. `vunion`

does not, and so returns as many duplicate elements as are in either input vector (not the sum of their inputs.) In short, `vunion`

is the same as `vintersect(x,y) + vsetdiff(x,y) + vsetdiff(y,x)`

.

1 |

`x` |
A vector or an object which can be coerced to a vector |

`y` |
A vector or an object which can be coerced to a vector |

`multiple` |
Should repeated "multiple" items be returned? Default is |

A vector of the union of the two input vectors. If `multiple`

is set to `FALSE`

then the value returned is the same as `base::union`

.

Carl Witthoft

1 2 3 4 5 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.