Skip to content

Instantly share code, notes, and snippets.

@alistaire47
Created July 28, 2018 18:39
Show Gist options
  • Save alistaire47/89b87b7669b23f000ddb10cac411df9f to your computer and use it in GitHub Desktop.
Save alistaire47/89b87b7669b23f000ddb10cac411df9f to your computer and use it in GitHub Desktop.
coalesce_join(
tribble(
~key, ~var1, ~var2,
'a', 1, NA,
'b', NA, 2
),
tribble(
~key, ~var1, ~var2,
'a', NA, 1,
'b', 2, NA
),
by = 'key'
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment