| lookup_term_value | R Documentation |
Compatibility wrapper around lookup_exact_value(). By default, it returns
only the numeric factor value.
lookup_term_value(row, coverage, plan, term_name, return_match = FALSE, ...)
row |
A one-row data frame containing the rating record. |
coverage |
A character string identifying the coverage being rated. |
plan |
A |
term_name |
A character string identifying the rating term to look up. |
return_match |
Logical. If |
... |
Additional arguments accepted for backward compatibility. They are currently ignored. |
If return_match = FALSE, a numeric rating value. If
return_match = TRUE, a list containing the value and matching-row
information.
ex <- example_rating_plan()
policy <- ex$policies[1, , drop = FALSE]
lookup_term_value(
row = policy,
coverage = "BI",
plan = ex$plan,
term_name = "territory"
)
lookup_term_value(
row = policy,
coverage = "BI",
plan = ex$plan,
term_name = "territory",
return_match = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.