I have two left_join
operations:
unnested = left_join(unnested, X3g_data[,c(1:6)], by = c("Country" = "CountryName"), all.x = TRUE)
unnested = left_join(unnested, new_data, by = "Country", all.x = TRUE)
I want to combine them into one left_join
command, I found this answer, but it assumes that the column names are the same, which is not the case for me.
How can combine these two operations into a single operation?