We’ll be using the help of “dplyr” package to make a left join and right join.
We have two data-sets → employee salary and employee designation:
Employee_designation->
Employee_salary->
Let’s do a left join on these two data-sets using “left_join()” function from dplyr package:
left_join(employee_designation,employee_salary,by="name")
Result->
Now, let’s perform a right join between these two data-sets:
right_join(employee_designation,employee_salary,by="name")
Result->