vsetequal: Check whether two vectors contain exactly the same collection of elements.
Description
Unlike the base::setequal function, if the vectors have repeated elements in common, the count of these elements is checked. As a result, vectors of different lengths will never be "equal."
Usage
vsetequal(x, y, multiple = TRUE)
Value
A logical value indicating equality or inequality. If multiple=FALSE is set, both input vectors are reduced to unique values before checking for equality.
Arguments
k
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 TRUE; if set to FALSE, vsetequal acts like the base::intersect function.