This function takes a numeric or character vector and returns a vector of the
unique elements that appear more than once - so a simple shortcut for
unique(x[duplicated(x)])
that is particularly friendly in pipes
dupl_items(x)
A vector containing unique elements that are duplicated in the original vector. Returns an empty vector if there are no duplicates.