clusterUsers: Cluster users according to their platform action...

Description Usage Arguments Value

View source: R/cluster.r

Description

Convenience function that chains calls to dist and hclust. The hclust method defaults to ward.D since that's produced the cleanest clusterings in early exploratory analyses.

Usage

1
2
clusterUsers(paDistData = NULL, extraData = NULL, clustVariables = NULL,
  distParams = NULL, hclustParams = list(method = "ward.D"))

Arguments

paDistData

A data frame, the result of calling calculatePADist

extraData

A data frame of form (user_id, variable, value) containing data on users outside of their platform action distributions.

clustVariables

A character vector specifying which variables to include in the clustering routine.

distParams

Named list of additional parameters to pass to stats::dist

hclustParams

Named list of additional parameters to pass to fastcluster::hclust

Value

An object of type hclust whose labels correspond to the user ids that appear in paDistDataWide


johnchower/oneD7 documentation built on May 19, 2019, 4:21 p.m.