check_formula | R Documentation |
This function verifies that all variables specified in the formula are present in the provided data frame. If any variables are missing, the function will stop and return an error message listing the missing variables.
check_formula(formula, data)
formula |
Formula. The model formula that specifies the relationship between the dependent and independent variables. |
data |
Data frame. The data frame in which to check for the presence of variables specified in the formula. |
Invisibly returns NULL
if all variables are present. Stops with an error if any variables are missing.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.