I have 5 vectors of strings and each vector has different number of elements. However, there are many elements in these vectors which are common.
Ex v1<-c("a","x","y","z")
v2 <-c("b","g","m","r","s","x","z")
v3 <-c("a","m","x","y","z","b","r","g")
v4 <-c("d","h","a","g","s","x")
v5 <-c("a","b","m","x","y","z")
I want to calculate the percentage of matches between all the vectors,depending on the number of elements matching. I do not want to compare it using the order of elements so we have to check each element of one vector against every element of every other vector. Here the max matches are between v1 and v5. We can say that the v1 and v5 have (8/10)*100=80% Thus I want all sets of two vectors with percentages higher that 50%.