View source: R/check-input-helpers.R
check_columns_present | R Documentation |
The functions loops over the column names and checks whether they are present. If an issue is encountered, the function immediately stops and returns a message with the first issue encountered.
check_columns_present(data, columns)
data |
A data.frame or similar to be checked |
columns |
A character vector of column names to check |
Returns TRUE if the check was successful and a string with an error message otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.