store.hclus {radiant.multivariate}R Documentation

Add a cluster membership variable to the active dataset

Description

Add a cluster membership variable to the active dataset

Usage

## S3 method for class 'hclus'
store(dataset, object, nr_clus = 2, name = "", ...)

Arguments

dataset

Dataset to append to cluster membership variable to

object

Return value from hclus

nr_clus

Number of clusters to extract

name

Name of cluster membership variable

...

Additional arguments

Details

See https://radiant-rstats.github.io/docs/multivariate/hclus.html for an example in Radiant

See Also

hclus to generate results

summary.hclus to summarize results

plot.hclus to plot results

Examples

hclus(shopping, vars = "v1:v6") %>%
  store(shopping, ., nr_clus = 3) %>%
  head()

[Package radiant.multivariate version 1.6.6 Index]