Skip to content

Commit

Permalink
Use setequal instead of checking lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmbaazam committed Sep 24, 2024
1 parent ac1e639 commit bfa360c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/checks.R
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ test_data_complete <- function(data) {
max(data$date, na.rm = TRUE),
by = "1 day"
)
if (length(complete_dates) > length(unique(data$date))) {
if (!setequal(complete_dates, unique(data$date))) {
return(FALSE)
}

Expand Down

0 comments on commit bfa360c

Please sign in to comment.