orderIn | R Documentation |
Find the order of one vector in another
orderIn(query, target, strict = FALSE, orderFunc = order, ...)
query |
values to be sorted in target order |
target |
order for query to be sorted into |
strict |
if true error if query not in target, if false append unknown queries to end of target |
orderFunc |
function to use for ordering |
... |
arguments for order |
a vector the same length as query specifying the order of query elements in target
orderIn(c('z','c','a','t'),letters)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.