View source: R/complete_levels.R
complete_levels | R Documentation |
model.matrix
breaks when newdata
includes a factor
variable, but not all levels are present in the data. This is bad for us
because we often want to get predictions with one (or few) rows, where some
factor levels are inevitably missing.
complete_levels(x, character_levels = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.