Learn R Programming

baselinenowcast (version 0.2.0)

tail.reporting_triangle: Get last rows of a reporting_triangle

Description

Get last rows of a reporting_triangle

Usage

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

Value

Last rows as a reporting_triangle.

Arguments

x

A reporting_triangle object.

n

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

...

Additional arguments (not currently used).

See Also

Reporting triangle construction and validation [.reporting_triangle(), [<-.reporting_triangle(), as.data.frame.reporting_triangle(), as.matrix.reporting_triangle(), as_ChainLadder_triangle(), as_reporting_triangle(), as_reporting_triangle.data.frame(), as_reporting_triangle.matrix(), as_reporting_triangle.triangle(), assert_reporting_triangle(), get_delays_from_dates(), get_delays_unit(), get_max_delay(), get_mean_delay(), get_quantile_delay(), get_reference_dates(), get_report_dates(), get_reporting_structure(), head.reporting_triangle(), is_reporting_triangle(), new_reporting_triangle(), print.reporting_triangle(), reporting_triangle-class, summary.reporting_triangle(), truncate_to_delay(), truncate_to_quantile(), validate_reporting_triangle()

Examples

Run this code
# Get last 3 rows
tail(example_reporting_triangle, n = 3)

Run the code above in your browser using DataLab