Skip to contents

Get first rows of a reporting_triangle

Usage

# S3 method for class 'reporting_triangle'
head(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

First rows as a reporting_triangle.

Examples

# Get first 3 rows
head(example_reporting_triangle, n = 3)
#> Reporting Triangle
#>  The reporting triangle does not contain any missing values.
#> Delays unit: days
#> Reference dates: 2024-01-01 to 2024-01-03
#> Max delay: 3
#> Structure: 0
#> 
#>              0  1  2  3
#> 2024-01-01 100 55 30 12
#> 2024-01-02  70 40 24  8
#> 2024-01-03  80 50 25 10