This function is generic (see Methods); method functions can be written to handle specific classes of data. Classes which already have methods for this function include: aovlist, lm, loess, tree.
model.frame(formula, data, ...)
Typically, model.frame is called less often by users than by functions that are either fitting a model or summarizing one. The default method for model.frame constructs the model frame from the terms (usually inferred from the formula), the data if any, and any special expressions such as subsets, weights, or whatever the particular fitting method needs.
fuel.fit <- lm(Fuel ~ Weight + Disp., fuel.frame) model.frame(fuel.fit) model.frame(sqrt(skips) ~ ., solder)