powered by
Get the order of a vector with general order given in some other vector
util_order_by_order(x, order, ...)
the vector
the "order vector
additional arguments passed to order
order
if (FALSE) { util_order_by_order(c("a", "b", "a", "c", "d"), letters) }
Run the code above in your browser using DataLab