get_claims {reinsureR} | R Documentation |
Get claims
Description
get_claims
gets the claims table of a Claims
(Claims-class
) object.
Usage
get_claims(object)
## S4 method for signature 'Claims'
get_claims(object)
Arguments
object |
The object to display |
Examples
c <- data.frame(year = unlist(sapply(2000:2017, function(x) rep(x, rpois(1,3)))))
c$amount <- pmax(rnorm(nrow(c), 200000, 100000), 0)
p <- aggregate(amount ~ year, c, sum)
claims <- claims(c, p)
get_claims(claims)
[Package reinsureR version 0.1.0 Index]