Skip to content

Commit

Permalink
fix NA in index bug for remove_elements()
Browse files Browse the repository at this point in the history
  • Loading branch information
bluefoxr committed Apr 8, 2024
1 parent 3f23750 commit c2f01ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/audit_tools.R
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ remove_elements <- function(coin, Level, dset, iCode, quietly = FALSE){
rankchgabs <- rankchg
rankchgabs[-1] <- apply(rankchgabs[-1], 2, abs)
# mean absolute rank changes
MeanAbsDiff <- colMeans(rankchgabs[-1])
MeanAbsDiff <- colMeans(rankchgabs[-1], na.rm = TRUE)

# Output
list(Scores = Scores,
Expand Down

0 comments on commit c2f01ff

Please sign in to comment.