| rate_entities | R Documentation |
Apply a rating plan to entity-level records such as drivers, vehicles, boats, or scheduled items, returning both rated values and trace output.
rate_entities(entity_data, plan, validate = TRUE)
entity_data |
A data frame containing one row per entity to be rated. |
plan |
A |
validate |
Logical. If |
A rating_result object containing rated_data, term_trace,
and the rating plan.
ex <- example_rating_plan()
drivers <- ex$policies
drivers$household_id <- "H1"
drivers$policy_id <- c("D1", "D2")
result <- rate_entities(
entity_data = drivers,
plan = ex$plan
)
result$rated_data
result$term_trace
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.