R/utils.R
check_key_column.Rd
This 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.
check_key_column(dt, col)
A data table to check
A character string specifying the name of the column to check
nothing if the column exists and has unique values, otherwise an error is thrown
if (FALSE) {
RDBEScore:::check_key_column(H1Example$DE, "DEid")
}