Skip to contents

Assert validity of reporting_triangle objects

Usage

assert_reporting_triangle(data, validate = TRUE)

Arguments

data

A reporting_triangle object to check for validity.

validate

Logical. If TRUE (default), validates the object. Set to FALSE only when called from functions that already validated.

Value

Returns NULL invisibly. Throws an error if validation fails.

Examples

# Validate an example reporting triangle
assert_reporting_triangle(example_reporting_triangle)
#> NULL