align | R Documentation |
Order a given vector, which may contain duplicates, according to the wanted order given by some other vector. Supercedes 'order_as' and 'order_by_list' in a single function.
align(x, template = NULL, group = NULL, all = TRUE, outgroup = ".Other")
x |
the vector that needs ordering |
template |
the wanted order |
group |
possible grouping |
all |
logical; should given elements not in template be kept? |
outgroup |
group name of elements not in template (if kept) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.