I need to match names in two different datasets. These firm names can be partially different and are not unique in both datasets: they may be repeated many times.
Although some of these names may coincide in the two dataset, I want to compare all the similar names and then choose the exact match.
I have tried with pmatch but it returns something strange. The same with agrep that gives me all NA.
Any suggestions?