Skip to contents

Returns a plain matrix representation of a reporting_triangle object, removing the reporting_triangle class and custom attributes while preserving row and column names.

Usage

# S3 method for class 'reporting_triangle'
as.matrix(x, ...)

Arguments

x

A reporting_triangle object.

...

Additional arguments (not used).

Value

A plain matrix without reporting_triangle class or attributes.

Examples

# Convert reporting_triangle to plain matrix
plain_mat <- as.matrix(example_downward_corr_rt)
class(plain_mat)  # "matrix" "array"
#> [1] "matrix" "array"