Skip to content

Commit

Permalink
fixed rank_indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
trvinh authored and sckott committed Mar 19, 2020
1 parent ac844f0 commit 3c28e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/class2tree.R
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ rank_indexing <- function (rankList) {
for (
r in ls(rank2index)[!(ls(rank2index) %in% ls(tmpEnv))]
) {
if (rank2index[[r]] >= tmpEnv[[subList[i-1]]]) {
if (rank2index[[r]] >= currentIndex) {
tmpEnv[[r]] <-
rank2index[[r]] + (tmpEnv[[iRank]] - rank2index[[iRank]])
flag <- 1
Expand Down

0 comments on commit 3c28e08

Please sign in to comment.