Given the name (a term label) of a term in a model, returns the names of the variables involved in the term.
term_variables(object, term, ...)# S3 method for terms
term_variables(object, term, ...)
# S3 method for gam
term_variables(object, term, ...)
# S3 method for bam
term_variables(object, term, ...)
A character vector of variable names.
an R object on which method dispatch is performed
character; the name of a model term, in the sense of
attr(terms(object), "term.labels")
. Currently not checked to see if the
term exists in the model.
arguments passed to other methods.