Learn R Programming

ProfileLadder (version 0.2.2)

print.profileLadder: Print Objects of the S3 Class profileLadder

Description

Function to organize and print the outputs provided by the function parallelReserve() and the function mcReserve

Usage

# S3 method for profileLadder
print(x, fancy.print = getOption("profileLadder.fancy", TRUE), ...)

Value

displays information resulting from a call of the parallelReserve()

function or the mcReserve function

Arguments

x

an object of the class profileLadder resulting from a call of one of the functions parallelReserve(), mcReserve, or as.profileLadder()

fancy.print

logical to indicate whether fancy run-off triangle should be printed or a standard output should be used instead. The default choice is TRUE. Note that that fancy print option uses by DEFAULT zero decimal digits. Specific colors for the fancy print option and the number of decimal points to be used can be set by the function set.fancy.print(). The fancy print option can be supressed by options(profileLadder.fancy = FALSE).

...

further arguments passed to print()

See Also

as.profileLadder(), set.fancy.print(), parallelReserve(), mcReserve()

Examples

Run this code
data(CameronMutual)
## full run-off triangle printed with the fancy mode
x <- as.profileLadder(CameronMutual)
print(x) 

## run-off triangle with unobserved future payments 
x <- as.profileLadder(observed(CameronMutual))
print(x) 

## the same run-off triangle using a standard printing method 
options(profileLadder.fancy = FALSE)
print(x)

Run the code above in your browser using DataLab