Q:
Find a value in one table and return the index of the corresponding value in another table
Say I have a table (table1) with a column containing a list of strings of variable length, say:
table1.string <- c("this","is","a","test","string")
There is also a table (table2) that lists the same strings, but in a different order:
table2 <- as.data.frame(table2)
table2