# Generate retrospective triangles from truncated triangles
trunc_rts <- truncate_to_rows(example_reporting_triangle, n = 2)
retro_rts <- apply_reporting_structures(trunc_rts)
# With custom structure
retro_rts_custom <- apply_reporting_structures(
trunc_rts,
structure = 2
)
retro_rts_custom
Run the code above in your browser using DataLab