Skip to content

Commit

Permalink
fix common_vars .2
Browse files Browse the repository at this point in the history
  • Loading branch information
RossanaTat committed Mar 7, 2024
1 parent 9abcdd6 commit b640170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/joyn-merge.R
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ joyn <- function(x,
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

common_vars <- intersect(names(x), names(y))
if (!is.null(fixby$yby)) {
if (!(is.null(fixby$yby))) {
common_vars <- common_vars[!(common_vars %in% fixby$yby)]
} else {
common_vars <- common_vars[!(common_vars %in% fixby$by)]
Expand Down

0 comments on commit b640170

Please sign in to comment.