vecsets: 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.

Package details

AuthorCarl Witthoft
MaintainerCarl Witthoft <>
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

Try the vecsets package in your browser

Any scripts or data that you put into this service are public.

vecsets documentation built on March 8, 2021, 1:13 a.m.