Given two data tables with these columns:
dt1<- c("name")
dt2<-c("name", "alternative_name_1", "alternative_name_2", "ethnicity")
I want to find out which names are common in these two data tables. I know that I can use the merge function to merge my two data tables by common names. However, at the same time, I also need to compare the alternative names of my bigger data table with the names of my smaller data table and see if they match. How can I do that?