Skip to content

Commit 3a80cf2

Browse files
committed
avoid returning NA in match_weighted_cases
1 parent be33a3d commit 3a80cf2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/match_weighted_cases.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ match_weighted_cases <- function( # nocov start
7979
FROM {x}
8080
LEFT JOIN {y}
8181
ON {join_condition}
82-
WHERE {cols_not_null} AND {y}.numero IS NOT NULL;"
82+
WHERE {cols_not_null} AND {y}.numero IS NOT NULL AND lon IS NOT NULL;"
8383
)
8484

8585
DBI::dbSendQueryArrow(con, query_match)

R/match_weighted_cases_probabilistic.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ match_weighted_cases_probabilistic <- function( # nocov start
199199
FROM {x}
200200
LEFT JOIN {y}
201201
ON {join_condition_determ}
202-
WHERE lat IS NOT NULL {cols_not_null_match};"
202+
WHERE lon IS NOT NULL {cols_not_null_match};"
203203
)
204204

205205
DBI::dbSendQueryArrow(con, query_match)

0 commit comments

Comments
 (0)