From f960dd48b00aad521fffb05e26f58a703f405d2c Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer <reinhold@kainhofer.com> Date: Thu, 19 Jan 2023 23:11:33 +0100 Subject: [PATCH] Vignette: clean up code --- vignettes/using-the-lifeinsurancecontracts-package.Rmd | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vignettes/using-the-lifeinsurancecontracts-package.Rmd b/vignettes/using-the-lifeinsurancecontracts-package.Rmd index 29190d3..c2fae6e 100644 --- a/vignettes/using-the-lifeinsurancecontracts-package.Rmd +++ b/vignettes/using-the-lifeinsurancecontracts-package.Rmd @@ -286,15 +286,16 @@ as it is created. It is, however, also possible to modify a contract later on, e.g. by stopping premium payments and converting it to a paid-up contract. ```{r SimpleExampleRiskConversionCode, eval=F} -contract.L71U = contract.L71U$premiumWaiver(t = 3) -contract.L71U$Values$reserves +contract.L71U.prf = contract.L71U$premiumWaiver(t = 3) +contract.L71U.prf$Values$reserves ``` ```{r SimpleExampleRiskConversionOut, echo=F} -contract.L71U = contract.L71U$premiumWaiver(t = 3) -contract.L71U$Values$reserves %>% pander() +contract.L71U.prf = contract.L71U$premiumWaiver(t = 3) +contract.L71U.prf$Values$reserves %>% pander() ``` + ## Creating tables with various parameters When prototyping a new product or creating marketing material, it is often needed -- GitLab