Skip to content

Commit

Permalink
seeing what happening devel version with merge
Browse files Browse the repository at this point in the history
  • Loading branch information
joethorley committed Jul 5, 2024
1 parent 13e5bec commit 0be55ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/chk-join.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ chk_join <- function(x, y, by, x_name = NULL) {
#' vld_join(data.frame(z = 1), data.frame(a = 2), by = c(z = "a"))
#' @export
vld_join <- function(x, y, by) {
print(nrow(x))
print(merge(as.data.frame(x), unique(as.data.frame(y)[by]),
by.x = if (is.null(names(by))) by else names(by), by.y = by))
print(nrow(merge(as.data.frame(x), unique(as.data.frame(y)[by]),
by.x = if (is.null(names(by))) by else names(by), by.y = by)))
identical(
nrow(x),
nrow(merge(as.data.frame(x), unique(as.data.frame(y)[by]),
Expand Down

0 comments on commit 0be55ac

Please sign in to comment.