View source: R/util_sort_by_order.R
util_sort_by_order | R Documentation |
Sort a vector by order given in some other vector
util_sort_by_order(x, order, ...)
x |
the vector |
order |
the "order vector |
... |
additional arguments passed to |
## Not run:
util_sort_by_order(c("a", "b", "a", "c", "d"), letters)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.