Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in R Programming by (50.2k points)

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? 

1 Answer

0 votes
by (107k points)

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

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...