Skip to contents

Get last rows of a reporting_triangle

Usage

# S3 method for class 'reporting_triangle'
tail(x, n = 6L, ...)

Arguments

x

A reporting_triangle object.

n

Integer indicating the number of rows to return. Default is 6.

...

Additional arguments (not currently used).

Value

Last rows as a reporting_triangle.

Examples

# Get last 3 rows
tail(example_reporting_triangle, n = 3)
#> Reporting Triangle
#> Delays unit: days
#> Reference dates: 2024-01-03 to 2024-01-05
#> Max delay: 3
#> Structure: 1, 0, 1
#> 
#>              0  1  2  3
#> 2024-01-03  90 45 NA NA
#> 2024-01-04 110 NA NA NA
#> 2024-01-05  95 NA NA NA