| ensure_slot_columns | R Documentation |
Ensure variable/level slot columns exist
ensure_slot_columns(x, max_vars = 12)
x |
Data frame. |
max_vars |
Number of variable/level slots. |
A data frame containing the original columns in x plus any
missing variable and level slot columns.
factors <- data.frame(
term_name = "territory",
term_value = 1.10
)
factors <- ensure_slot_columns(
factors,
max_vars = 2
)
factors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.