Checks whether an object in unique (i.e. doesn't contain any duplicated elements).

check_unique(x, x_name = substitute(x))

Arguments

x

The object to check.

x_name

A string of the name of the object.

Value

Throws an informative error or returns an invisible copy of the object.