Find the intersection and set difference(s) of two sets all at once and more
efficiently than calling base::intersect() and base::setdiff() separately.
Based on this stackoverflow answer https://stackoverflow.com/a/72631719
set_ops(A, B, type)sets (vectors) of elements
a string describing the data type of the label set. This can be "nominal", "ordinal", "interval", or "ratio" and is used to select the appropriate distance metric.