Skip to content

Commit

Permalink
refactor: update any
Browse files Browse the repository at this point in the history
  • Loading branch information
bczech committed Aug 8, 2024
1 parent 085460b commit ff0d9ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/map_df.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ map_df <- function(trt_md,
# are found.
idx <- idx * match_mx[matchFactor, ]

if (any(idx > 0)) {
if (any(idx > 0, na.rm = TRUE)) {
match_idx <- which.max(idx)
msgs <- c(
msgs,
Expand Down

0 comments on commit ff0d9ef

Please sign in to comment.