check_terms_in_data: Checks if all terms are in the data
Description
Checks if all terms are in the data
Usage
check_terms_in_data(form, data, i, n_terms = NULL)
Arguments
- form
Formula or character (tilde will be prefixed if it isn't already)
- data
A data.frame or tibble
- i
The segment number (integer)
- n_terms
Int >= 1. Number of expected terms. Will raise error if it doesn't match.