Description Usage Arguments Value Examples
Organizes the levels to use for the two inputs. This is useful
for when one wants to merge two vectors that are factors. Ideally, they
have the same levels, in which case those are returned. If they have
overlapping levels, then the levels are merged and sorted (using
sort()
). Otherwise, the levels are dropped (returning NULL
)
1 | organize_levels(x, y, ...)
|
x, y |
Two factor vectors |
... |
passed to |
vector of levels or NULL
for no levels
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.