Back
While executing the left outer join, how do I obtain the elements from the right table that didn't find an equivalent in the left table?
After performing the left_join in R programming, we cannot find out what wasn't matched. But you can use anti_join to find what doesn't match. Refer to the below code:
full_join(band_members, band_instruments)# Joining, by = "name"# # A tibble: 4 x 3# name band plays # <chr> <chr> <chr> # 1 Mick Stones <NA> # 2 John Beatles guitar# 3 Paul Beatles bass # 4 Keith <NA> guitar
full_join(band_members, band_instruments)
# Joining, by = "name"
# # A tibble: 4 x 3
# name band plays
# <chr> <chr> <chr>
# 1 Mick Stones <NA>
# 2 John Beatles guitar
# 3 Paul Beatles bass
# 4 Keith <NA> guitar
31k questions
32.8k answers
501 comments
693 users