| validate_predictors_exist | R Documentation |
Checks that all specified predictor variables exist in the dataset. Handles interaction terms (splits on ":"), mixed-effects random effects (ignores "|" syntax), and raises informative errors for missing variables.
validate_predictors_exist(data, predictors)
data |
Data frame or data.table to check. |
predictors |
Character vector of predictor variable names. |
Invisible TRUE if validation passes, otherwise stops with error.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.