The
base
“sets” tools 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
set tools functionality.For this revision, the code for most functions was rewritten to increase processing speed dramatically. A new function, “vperm,” generates all permutations of all possible combinations taken N elements at a time from an input vector.