add {bootstrap}R Documentation

Description

add up two triangles

Usage

add(A, B)

Arguments

A ~~a triangle object~~
B ~~a triangle object~~

Note

~~Triangle A and B should have same year and age, otherwise, error will happen~~

Author(s)

~~Hai You~~

Examples

t<-new("Triangle", data=readcsv(), accumulated=TRUE)
A<-new("Triangle", data=t@data * 2, accumulated=t@accumulated)
B<-new("Triangle", data=t@data * 4, accumulated=t@accumulated)
total<-add(A,B)         #total will be 6 times of triangle t

[Package bootstrap version 1.0-1 Index]