Skip to content

Commit

Permalink
fix data.table note
Browse files Browse the repository at this point in the history
  • Loading branch information
bblodfon committed Aug 13, 2024
1 parent 283003e commit 567f456
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/voting_methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
# @param candidates vector with ALL features
# @param weights vector of weights, 1-1 correspondence with voters
# @return data.table with 4 columns: features (mandatory), score, norm_score, borda_score (mandatory).
# Always features are ordered with decreasing `score` (or descreasing `borda_score` if a method returns only a ranking).
# Always features are ordered with decreasing `score` (or decreasing `borda_score` if a method returns only a ranking).

borda_score = NULL # silence data.table note: "no visible global binding"

approval_voting = function(voters, candidates, weights) {
# faster R version in case of equal weights
Expand Down

0 comments on commit 567f456

Please sign in to comment.