Description Usage Arguments Value
reorder factors passed to y.by.x via their respective clusters
1 2 | distance.cluster(df, formula, value.var, which.clust = "both",
fun.aggregate = mean)
|
df |
data frame passed containing both factor columns to reorder and numeric column to cluster by |
value.var |
Character column name by which clustering will be calculated |
y.by.x |
Index of the columns or character column names to reorder |
which.clut |
Defines which column is reordered. Default set to both. Set to "y" to only reorder y.by.x[1], set to "x" to only reorder y.by.x[2] |
returns df but with reordered factors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.