Mutating joins: extras

left_join(), right_join() and inner_join() have an argument unmatched =

  • defaults to "drop": drop non-matching records from (respectively) y, x or both x and y
  • can be set to "error" to verify that all records from y, x or both x and y are kept, if that is what you expect