cluster_data.Mclust: Extracts cluster allocation from object of type 'Mclust'

Description Usage Arguments Value See Also Examples

View source: R/mclust.R

Description

Extracts the cluster allocation from a Mclust analysis into a data.frame

Usage

1
2
  ## S3 method for class 'Mclust'
 cluster_data(model, ...)

Arguments

model

object of type Mclust

...

ignored

Value

A data frame with the following columns:

cluster

Cluster allocation

See Also

cluster_data, plot_cluster

Examples

1
2
3
4
5
require(mclust)
data(iris)
iris <- iris[, -5]
model <- Mclust(iris, 3)
str(cluster_data(model))

pentalibra/ggcluster documentation built on May 25, 2019, 12:46 a.m.