expandModelData | R Documentation |
Generates additional rows of a predictor data frame so that factors retain the levels of the factors in the model data frame, provided no new values are introduced.
expandModelData(model, add)
add |
a data frame containing values to be added. |
mod |
a model from which a model data frame can be
extracted with |
a data frame with concatenating the rows of the model data frame and the rows of 'add' together with an additional variable '.source' with the value 'model' or 'add' showing the provenance of the row.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.