dplyr update 1.1.0
Introduction
The recent dplyr update introduced a few interesting changes to the *_join functionality
The general usage of the functions:
check also the associated help page ?dplyr::left_join()
.
So the new thing is the function join_by
as an argument to by =
.
Changes / comparisons
Comparisons between old and new synthax for the standard equal joining.
NEW dplyr::join_by() fuction reduces necessary quotation.
If column names are not identical in x
and y
those can be either wrapped in a equals character vector c("nameA"="nameB")
, or the join_by
function. Here the general R synthax is respected, using ==
as equal comparson argument.
For multiple arguments comparisons:
but this of course now also enables all other inequal comparsons defined in R already:
For further info on that I can recomend the great video by Davis Vaughan.