View source: R/required_items.R
required_items | R Documentation |
Displays a error message when specified variables are not present in data
required_items(
data,
items,
message = "The following variable(s) need to be present in data:"
)
data |
A data frame. |
items |
Specify the variables that must be present in a data frame to use a function or run an R script. Variables should be listed using the c() function, and each variable name should be quoted. For example, "items = c("Var1", "Var2"). |
message |
The message that returns when specified variable(s) are missing. By default, "The following variable(s) need to be present in data:" |
A error message if specified variable is missing.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.