Description Usage Arguments Value Examples
Checks whether the formula has a single predictor (which is not a dot)
1 | is_one_predictor_formula(form)
|
form |
A formula |
TRUE if formula has a single predictor, and that it is not a dot. FALSE otherwise.
1 2 3 4 5 6 | ## Not run:
is_one_predictor_formula(Y ~ X + Z) # returns: FALSE
is_one_predictor_formula(Y ~ .) # returns: FALSE
is_one_predictor_formula(Y ~ X) # returns: TRUE
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.