Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LifeInsureR package for R
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
R
LifeInsureR package for R
Commits
72df9738
Commit
72df9738
authored
3 years ago
by
Reinhold Kainhofer
Committed by
Reinhold Kainhofer
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix vignette build and CRAN checks
parent
def8ba28
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
DESCRIPTION
+2
-2
2 additions, 2 deletions
DESCRIPTION
R/exportInsuranceContract_xlsx.R
+2
-2
2 additions, 2 deletions
R/exportInsuranceContract_xlsx.R
man/costValuesAsDF.Rd
+3
-2
3 additions, 2 deletions
man/costValuesAsDF.Rd
with
7 additions
and
6 deletions
DESCRIPTION
+
2
−
2
View file @
72df9738
...
...
@@ -30,6 +30,8 @@ Imports:
stringr,
methods,
rlang,
kableExtra,
pander,
tidyr
License: GPL (>= 2)
RoxygenNote: 7.1.1
...
...
@@ -48,8 +50,6 @@ Collate:
Suggests:
knitr,
rmarkdown,
pander,
kableExtra,
magrittr,
tibble,
testthat
...
...
This diff is collapsed.
Click to expand it.
R/exportInsuranceContract_xlsx.R
+
2
−
2
View file @
72df9738
...
...
@@ -280,12 +280,12 @@ getContractBlockPremiums = function(contract) {
#' Convert the array containing cost values like cashflows, present
#' values, etc. (objects of dimension tx5x3) to a matrix with dimensions (tx15)
#'
#'
#
param
eter
costValues Cost definition data structure
#'
@
param costValues Cost definition data structure
costValuesAsDF
=
function
(
costValues
)
{
as.data.frame.table
(
costValues
,
responseName
=
"Value"
,
stringsAsFactors
=
TRUE
)
%>%
mutate
(
Var4
=
recode
(
.data
$
Var4
,
"Erl."
=
""
))
%>%
arrange
(
.data
$
Var4
,
.data
$
Var2
,
.data
$
Var3
,
.data
$
Var1
)
%>%
unite
(
.data
$
costtype
,
.data
$
Var2
,
.data
$
Var3
,
.data
$
Var4
,
sep
=
" "
)
%>%
unite
(
"
costtype
"
,
"
Var2
"
,
"
Var3
"
,
"
Var4
"
,
sep
=
" "
)
%>%
pivot_wider
(
names_from
=
.data
$
costtype
,
values_from
=
.data
$
Value
)
%>%
mutate
(
Var1
=
NULL
)
}
...
...
This diff is collapsed.
Click to expand it.
man/costValuesAsDF.Rd
+
3
−
2
View file @
72df9738
...
...
@@ -6,6 +6,9 @@
\usage{
costValuesAsDF(costValues)
}
\arguments{
\item{costValues}{Cost definition data structure}
}
\description{
Convert the cost values array to a tx15 matrix
}
...
...
@@ -13,6 +16,4 @@ Convert the cost values array to a tx15 matrix
Not to be called directly, but implicitly by the \link{InsuranceContract} object.
Convert the array containing cost values like cashflows, present
values, etc. (objects of dimension tx5x3) to a matrix with dimensions (tx15)
#parameter costValues Cost definition data structure
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment