R/severity.R

Defines functions severity.default severity

Documented in severity severity.default

### actuar: Actuarial Functions and Heavy Tailed Distributions
###
### Display all values of a matrix of vectors by 'unrolling' the
### object vertically or horizontally.
###
### AUTHORS: Louis-Philippe Pouliot,
### Vincent Goulet <vincent.goulet@act.ulaval.ca>

### New generic
severity <- function(x, ...) UseMethod("severity")

### Default method. Currently identical to 'unroll' by lack of a
### better alternative. This default method is never called in the
### package.
severity.default <- function(x, bycol = FALSE, drop = TRUE, ...)
{
    chkDots(...)                        # method does not use '...'
    unroll(x, bycol, drop)
}

Try the actuar package in your browser

Any scripts or data that you put into this service are public.

actuar documentation built on Nov. 8, 2023, 9:06 a.m.