I want to get percentage character match between two strings/two columns consisting of names in my dataframe. If below can be achieved using sqldf it will be helpful. Below is an example which i want to achieve in one of my columns of the dataframe.
FAYE comparing to FAYE2
output will be 90%
The below formula to be used :
total characters (adding length of 1st and 2nd string) = 9 Matched characters multiplied by 2 divided by total characters = (4 x 2) / 9 *** we multiply matched characters by 2 as there are 2 strings 8/9 = 88.88 % or 90%
Thanks