This takes a source data frame with the relevant metadata and potentially a variable to flag as an error, adds a variable with the error message, and restricts the output to only the requested variables and the error message for the entries that had errors.
1 2 | create.errorframe(source.df, source.variables = NULL, error.text,
error.vector, error.component = NULL)
|
source.df |
Data frame. The data frame containing the metadata entries, if relevant, the variable matching |
source.variables |
Option vector of character strings. If |
error.text |
Character string. The error message to add to the variable |
error.vector |
Logical vector. The logical vector used to slice |
error.component |
Optional character string matching a variable name in |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.