hclus | R Documentation |
Hierarchical cluster analysis
hclus(
dataset,
vars,
labels = "none",
distance = "sq.euclidian",
method = "ward.D",
max_cases = 5000,
standardize = TRUE,
data_filter = "",
envir = parent.frame()
)
dataset |
Dataset |
vars |
Vector of variables to include in the analysis |
labels |
A vector of labels for the leaves of the tree |
distance |
Distance |
method |
Method |
max_cases |
Maximum number of cases allowed (default is 1000). Set to avoid long-running analysis in the radiant web-interface |
standardize |
Standardized data (TRUE or FALSE) |
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") |
envir |
Environment to extract data from |
See https://radiant-rstats.github.io/docs/multivariate/hclus.html for an example in Radiant
A list of all variables used in hclus as an object of class hclus
summary.hclus
to summarize results
plot.hclus
to plot results
hclus(shopping, vars = "v1:v6") %>% str()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.