| validate_factor_table | R Documentation |
Confirm that a factor table contains term_name and term_value and that
every term_value is numeric or coercible to numeric. This function does
not check for duplicate lookup keys; use find_duplicate_factors() for that.
validate_factor_table(factor_table, max_vars = 12)
factor_table |
A data frame containing rating factors. |
max_vars |
A nonnegative integer giving the number of variable-level slot pairs to add before validation. |
Invisibly returns TRUE if validation succeeds. Otherwise, the
function stops with an error.
ex <- example_rating_plan()
isTRUE(
validate_factor_table(
ex$plan$factor_table,
max_vars = ex$plan$max_vars
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.