Skip to content

Commit

Permalink
silence the many 2 many dplyr warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jlacko committed Nov 4, 2023
1 parent 0826800 commit dfb12ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/repo2w.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ repo2w <- function(date = Sys.Date() - 1) {
fake = 1) %>%
tibble::as_tibble()

res <- dplyr::full_join(calendar, res, by = "fake") %>%
res <- dplyr::full_join(calendar, res, by = "fake", relationship = "many-to-many") %>%
dplyr::select(-fake) %>%
dplyr::filter(valid_to >= date_valid & valid_from < date_valid) %>%
dplyr::filter(date_valid %in% date) %>%
Expand Down

0 comments on commit dfb12ff

Please sign in to comment.