Add orders to two character columns in a tibble, based on heirarchical clustering of a third column.
1 | add_factor_order(tbl, col1, col2, value, sym = FALSE)
|
tbl |
A tibble. |
col1, col2 |
Columns to add order to. |
value |
Column giving a value from each pair of levels in |
sym |
Is the relationship between |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.