Like Set Tools in 'Base' Package but Keeps Duplicate Elements

The 'base' tools union() intersect(), etc., follow the algebraic definition that each element of a set must be unique. Since it's often helpful to compare all elements of two vectors, this toolset treats every element as unique for counting purposes. For ease of use, all functions in vecsets have an argument 'multiple' which, when set to FALSE, reverts them to the base::sets (alias for all the items) tools functionality.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("vecsets")

1.4 by Carl Witthoft, 3 years ago


Browse source code at https://github.com/cran/vecsets


Authors: Carl Witthoft [aut, cre]


Documentation:   PDF Manual  


LGPL-3 license


Imports pracma


Imported by godley, mldr.resampling.


See at CRAN