Displaying 1 result from an estimated 1 matches for "matchmat".
2011 Mar 31
3
choosing best 'match' for given factor
...uot;, "O")))
> a
A X L O
A 1.00 0.41 0.58 0.75
X 0.41 1.00 0.60 0.86
L 0.58 0.75 1.00 0.83
O 0.60 0.86 0.83 1.00
And I have a search vector of variables
> v <- c("X", "O")
I want to write a function bestMatch(searchvector, matchMat) such that for each variable in searchvector, I get the variable that it has the highest match to - but searching only among variables to the left of it in the 'matching' matrix, and not matching with any variable in searchvector itself.
So in the above example, although "X" has...