Joins

dplyr implements the four most useful joins from SQL

Many to one on

left_join(x, y) includes all observations in x, regardless of whether they match or not. This is the most commonly used join because it ensures that you don’t lose observations from your primary table.

If a match is not unique, a join will add all possible combinations.

Filtering joins

Set operations



bjornerstedt/assist documentation built on May 12, 2019, 9:26 p.m.