Learn R Programming

radiant (version 0.1.95)

hier_clus: Hierarchical cluster analysis

Description

Hierarchical cluster analysis

Usage

hier_clus(dataset, hc_vars, data_filter = "", hc_dist = "sq.euclidian", hc_meth = "ward.D")

Arguments

dataset
Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant
hc_vars
Vector of variables to include in the analysis
data_filter
Expression entered in, e.g., Data > View to filter the dataset in Radiant. The expression should be a string (e.g., "price > 10000")
hc_dist
Distance
hc_meth
Method

Value

A list of all variables used in hier_clus as an object of class hier_clus

Details

See http://vnijs.github.io/radiant/marketing/hier_clus.html for an example in Radiant

See Also

summary.hier_clus to summarize results

plot.hier_clus to plot results

Examples

Run this code
result <- hier_clus("shopping", hc_vars = c("v1:v6"))

Run the code above in your browser using DataLab