Learn R Programming

RMixtComp (version 4.1.4)

extractMixtCompObject: Extract a MixtComp object

Description

Extract a MixtComp object from a MixtCompLearn object

Usage

extractMixtCompObject(object, K)

Value

a MixtComp object containing the clustering model with K classes

Arguments

object

mixtCompLearn output

K

number of classes of the model to extract

Author

Quentin Grimonprez

Examples

Run this code
# run clustering
resLearn <- mixtCompLearn(data.frame(x = rnorm(500)),
  nClass = 1:3, criterion = "ICL",
  nRun = 1, nCore = 1
)

# extract the model with 2 classes
clustModel <- extractMixtCompObject(resLearn, K = 2)

Run the code above in your browser using DataLab