Check if a column exists in a data table and has unique values
Source:R/utils.R
check_key_column.RdThis function checks if a specified column exists in a given data table and has unique values. If the column does not exist or has non-unique values, an error is thrown.