I have an dataset which contains names. It looks like this:
name1,name2
name4
name55,name25,name88
I have another dataset with a column that has rows, which have names. I want to find the indices of the rows that are found in the first dataset.
so:
nameColumn
name4
name25
indices 1 and 2 should be found. I am trying this:
which(mainDataset$namesColumn == namesDataset, arr.ind=TRUE)
But this is not right. Is there some kind of in operator to be used here?
Help is very welcome!