as_model_df | R Documentation |
data.frame
into a design matrixExpands out a data.frame
using a formula to create a design matrix.
Key details are that it will always place the outcome variable into
the first column of the return object.
as_model_df(dat, frm)
dat |
a data.frame |
frm |
a formula |
The outcome column may contain NA's but none of the other variables listed in the formula should contain missing values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.