Description Usage Arguments Details Value Author(s) References See Also Examples

Create a data frame with just the variables in the formula in
a `lm`

object.
This is comparable to `model.matrix`

or `model.frame`

except that factors,
polynomials, transformations, etc. are not expanded.

1 | ```
model.data(lmobj, lhs = FALSE)
``` |

`lmobj` |
An object returned by |

`lhs` |
Boolean indicator of whether or not to include the variable(s) on the left-hand side of the model formula. |

This is an easy-to-use substitute for `get_all_vars`

.
The `formula`

, `data`

, and `subset`

arguments, if present in
`lmobj`

's call, affect the result appropriately.

A data frame containing each of the variables referenced in the model formula.

Russell V. Lenth

Lenth RV (2009) “Response-Surface Methods in R, Using rsm”,
*Journal of Statistical Software*, 32(7), 1–17.
doi: 10.18637/jss.v032.i07

1 2 3 4 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.