model.frame {base} | R Documentation |
model.frame
is a generic function, and
model.frame.default
its default method.
model.frame(formula, data, na.action, ...)
model.frame.default(formula, data=sys.frame(sys.parent()),
na.action = na.fail, ...)
formula |
a model formula |
data |
|
na.action |
how |
... |
further arguments such as....... |
A data.frame
containing the variables used in
formula
.
model.frame.lm
for the method used in lm
.
data(cars)
data.class(model.frame(dist ~ speed, data = cars))