powered by
find the order of a string vector so it will match the order of another
orderByString(x, y)
a vector of strings
if (FALSE) { a <- c("c", "a", "b") b <- c("b", "c", "a") index <- orderByString(a, b) # to order b like a needs what indexes? index b[index] }
Run the code above in your browser using DataLab