Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
R - Mortality Tables
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
10
Issues
10
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
R
R - Mortality Tables
Commits
998b8712
Commit
998b8712
authored
May 20, 2018
by
Reinhold Kainhofer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix recursive evaluation / promise in mT.setTrend
parent
99585834
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
R/utilityFunctions.R
R/utilityFunctions.R
+1
-2
No files found.
R/utilityFunctions.R
View file @
998b8712
...
...
@@ -119,11 +119,10 @@ mT.scaleProbs = function(table, factor = 1.0, name.postfix = "scaled", name = pa
#' @export
mT.setTrend
=
function
(
table
,
trend
,
trendages
=
ages
(
table
),
baseYear
=
baseYear
(
table
)
)
{
mT.setTrend
=
function
(
table
,
trend
,
trendages
=
ages
(
table
),
baseYear
=
table
@
baseYear
)
{
if
(
!
is
(
table
,
"mortalityTable"
))
stop
(
"First argument must be a mortalityTable."
)
trend
[
table
@
ages
%in%
trendages
]
t
=
mortalityTable.trendProjection
(
table
,
baseYear
=
baseYear
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment