Learn R Programming

NetSimR (version 0.1.5)

apply_severity_cap: Apply severity cap function

Description

Apply severity cap function

Usage

apply_severity_cap(claims, severity_cap_boolean, severity_cap_amount)

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.

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.