Skip to content

Commit

Permalink
removed deprecated data.tree functions
Browse files Browse the repository at this point in the history
  • Loading branch information
gluc committed Sep 17, 2016
1 parent 4e06881 commit 7036a67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/analyze.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ GetDataFrame <- function(ahpTree,
if (length(formals(pruneFun))!=2) stop(paste0("pruneFun must have two arguments: node and decisionMaker"))

if (sort[1] == "priority" || sort[1] == "totalPriority") ahpTree <- Clone(ahpTree)
if (sort[1] == "priority") ahpTree$Sort(function(x) ifelse(x$isLeaf, x$position, x$parent$priority[decisionMaker, x$name]), decreasing = TRUE)
else if (sort[1] == "totalPriority") ahpTree$Sort(function(x) ifelse(x$isLeaf, x$position, x$parent$priority[decisionMaker, x$name]), decreasing = TRUE)
if (sort[1] == "priority") Sort(ahpTree, function(x) ifelse(x$isLeaf, x$position, x$parent$priority[decisionMaker, x$name]), decreasing = TRUE)
else if (sort[1] == "totalPriority") Sort(ahpTree, function(x) ifelse(x$isLeaf, x$position, x$parent$priority[decisionMaker, x$name]), decreasing = TRUE)


if (sort[1] == "priority") nms <- names(sort( ahpTree$weightContribution[decisionMaker, ], decreasing = TRUE))
Expand Down

0 comments on commit 7036a67

Please sign in to comment.