Description Usage Arguments Value Examples
Extracts the names of the predictors in a formula
1 | get_predictor_names(form)
|
form |
A formula |
a vector of string representing the names of the predictors
1 2 3 4 5 6 | ## Not run:
get_predictor_names(Y ~ X + Z) # returns: c("X", "Z")
get_predictor_names(Y ~ X:C) # returns: c("X", "C")
get_predictor_names(Y ~ X + B + X:C) # returns: c("X", "B", "C")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.