View source: R/construct_triangle.R
Groups and aggregates the portfolio by e.g. reporting year and development year since reporting
1  | construct_triangle(data, group.var1, group.var2, value, cumulative = FALSE)
 | 
data | 
 The portfolio of claims. The portfolio should have one record per development year for each claim.  | 
group.var1 | 
 Character. Name of the first grouping variable.  | 
group.var2 | 
 Character. Name of the second grouping variable.  | 
value | 
 The name of the variable that will be aggregated over the two grouping variables.  | 
cumulative | 
 Logical. Should the cumulative run-off triangle be returned?  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.