[R] A "matching problem"
Christofer Bogaso
bogaso.christofer at gmail.com
Mon Jul 30 16:55:59 CEST 2012
Dear all, I was encountering with a typical Matching problem and was
wondering whether R can help me to solve it directly.
Let say, I have 2 vectors of equal length:
vector1 <- LETTERS[1:6]
vector2 <- letters[1:6]
Now I need to match these 2 vectors with all possible ways like:
(A,B,C,D,E) & (a,b,c,d,e) is 1 match. Another match can be (A,B,C,D,E) &
(b,a,c,d,e), however there cant be any duplication.
Is there any direct way to doing that in R?
Thanks and regards,
More information about the R-help
mailing list