order_align | R Documentation |
all(reference == v[order_align(reference, v)]) == TRUE
for all vectors reference, v
.Return vector that reorders v to equal reference.
Assuming that two arguments are permutaions of each other, return a vector of indeces such that all(reference == v[order_align(reference, v)]) == TRUE
for all vectors reference, v
.
order_align(reference, v)
reference |
vector with the reference ordering |
v |
vector that is to be ordered the same way as |
vector of indeces so that v[return_value]
is the same as reference
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.