check_key_column | R Documentation |
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)
dt |
A data table to check |
col |
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
## Not run:
RDBEScore:::check_key_column(H1Example$DE, "DEid")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.