I have a disagreement with a colleague over the below two answers so need a third opinion.
Suppose you have 2 data frames: Salary
and Employee
.
Question: Which command would you use to join Employee and Salary by matching the rows from Salary
to Employee
?
Employee %>% left_join(Salary, by=c("F_NAME"="NAME"))
or
Employee %>% right_join(Salary, by=c("F_NAME"="NAME"))