| model.frame {stats} | R Documentation |
model.frame (a generic function) and its methods return a
data.frame with the variables needed to use
formula and any ... arguments.
model.frame(formula, ...)
## Default S3 method:
model.frame(formula, data = NULL,
subset = NULL, na.action = na.fail,
drop.unused.levels = FALSE, xlev = NULL, ...)
## S3 method for class 'aovlist'
model.frame(formula, data = NULL, ...)
## S3 method for class 'glm'
model.frame(formula, ...)
## S3 method for class 'lm'
model.frame(formula, ...)
get_all_vars(formula, data, ...)
formula |
a model |
data |
a data.frame, list or environment (or object
coercible by |
subset |
a specification of the rows to be used: defaults to all rows. This can be any valid indexing vector (see |