apply_severity_cap: Apply severity cap function

View source: R/ShinySimulatorGlobal.R

apply_severity_capR Documentation

Apply severity cap function

Description

Apply severity cap function

Usage

apply_severity_cap(claims, severity_cap_boolean, severity_cap_amount)

Arguments

claims

A vector of Claims.

severity_cap_boolean

A variable that if true, the function will cap the claims, otherwise will just return them.

severity_cap_amount

The claim cap value.

Value

If severity_cap_boolean is true, then will return the minimum of severity_cap_amount or claims otherwise will return claims. The operation is vectorised.


NetSimR documentation built on Oct. 25, 2023, 1:08 a.m.