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
vecsetshave an argument
multiplewhich, when set to
FALSE, reverts them to the
baseset 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.