View source: R/check_helpers.R
make_warning | R Documentation |
This function creates a warning message for a specific condition in the data. It formats the message to include the column names involved, the number of rows affected, and the specific row numbers where the warning applies. It is used internally in the package to provide informative warnings when certain conditions are met.
make_warning(errorws, colvars, warning_message, print_all = TRUE)
errorws |
a vector of row numbers where the warning applies. |
colvars |
a character vector of column names that are involved in the warning. |
warning_message |
a character string containing the warning message to be included in the output. |
print_all |
a logical value indicating whether to print all rows with warnings or truncate the output to the first 5 rows. Default is TRUE. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.