Skip to contents

with_exposure() gives a latest_valuation its exposure, one value per row in the order of as.data.frame(); with_past_pattern_end() sets how an origin older than the pattern's end develops, for every segment.

Usage

with_exposure(x, exposure)

with_past_pattern_end(x, rule)

Arguments

x

A latest_valuation.

exposure

Finite positive numbers, one per row.

rule

"reject", "no_development" or "tail".

Value

A latest_valuation.

Examples

d <- latest_valuation(data.frame(year = 2023:2024, age = c(24, 12), paid = c(37, 13)),
                      "year", "paid", age = "age")
with_exposure(d, c(60, 60))@exposure
#> [1] 60 60
with_past_pattern_end(d, "tail")@past_pattern_end
#> [1] "tail"