distance.cluster: euclidian clustering function

Description Usage Arguments Value

Description

reorder factors passed to y.by.x via their respective clusters

Usage

1
2
distance.cluster(df, formula, value.var, which.clust = "both",
  fun.aggregate = mean)

Arguments

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]

Value

returns df but with reordered factors


jtlandis/justinmisc documentation built on May 25, 2019, 8:18 a.m.