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 20, 2024
1 parent 778b3eb commit 6f81942
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 6f81942

Please sign in to comment.