validate_rate_sets: Check rate-set identifiers and date ranges

View source: R/validation.R

validate_rate_setsR Documentation

Check rate-set identifiers and date ranges

Description

Check that rate_set_key contains no missing or blank values when present, and that rate_eff_date is not later than rate_exp_date when both date columns are present.

Usage

validate_rate_sets(factor_table)

Arguments

factor_table

A data frame containing rating factors and optional rate-set fields.

Value

Invisibly returns TRUE if validation succeeds. Otherwise, the function stops with an error.

Examples

ex <- example_rating_plan()

isTRUE(
  validate_rate_sets(
    ex$plan$factor_table
  )
)

ratingtables documentation built on Sept. 6, 2026, 1:06 a.m.