join by different column names in r code example Example: join by different column names in r left_join(test_data, kantrowitz, by = c("first_name" = "name"))