validate_lc_column_id | R Documentation |
This function checks the 'lc_column_id' column of a provided data frame to ensure that it exists, contains no NA values, and contains no spaces in its entries. It also reports the number of unique values in the column.
validate_lc_column_id(df, column_name, verbose = TRUE)
df |
A data frame that should contain the 'lc_column_id' column. |
column_name |
The name of the column in |
verbose |
A logical indicating whether to print informative messages. Default is TRUE. |
An invisible NULL. The function is used mainly for its side effects (i.e., printing validation results).
df <- data.frame(lc_column_id = c("id1", "id2", "id3", "id1", "id 2", NA))
validate_lc_column_id(df, column_name = "lc_column_id")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.