Description Usage Arguments Value
Apply a function to each cluster from an hclust object, at a given height or with a given number of clusters.
1 2 |
hclustObject |
An hclust object, the result of calling clusterUsers |
height |
Numeric, indicates the height at which to cut the dendogram and take groups. Must specify either 'height' or 'num_clusters', but not both |
num_clusters |
Numeric, indicates the number of clusters to use from the heirarchy |
extraGroupings |
data.frame of the form (user_id, var1, ... varN). The var's are categorical, and are used to split the users into smaller groups. |
FUN |
A function, one of whose arguments is a set of user_ids. |
... |
Additional arguments to pass to FUN |
A named list of objects, of type value(FUN), one for each cluster in hclustObject, when cut at height 'height'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.