print.net_mmm_clustering: Print Method for MMM Clustering Attribute

View source: R/mmm.R

print.net_mmm_clusteringR Documentation

Print Method for MMM Clustering Attribute

Description

Prints the clustering metadata that cluster_mmm attaches to its netobject_group return value (attr(grp, "clustering")). Layout mirrors print.net_clustering: a one-line dimension header, a quality line with AvePP / entropy / classification error, information criteria, and a per-cluster table.

Usage

## S3 method for class 'net_mmm_clustering'
print(x, digits = 3L, ...)

Arguments

x

A net_mmm_clustering object.

digits

Integer. Decimal places for floating-point statistics. Default 3.

...

Unsupported. Supplying unused arguments raises an error.

Value

The input object, invisibly.

Examples

seqs <- data.frame(V1 = sample(c("A","B","C"), 30, TRUE),
                   V2 = sample(c("A","B","C"), 30, TRUE))
grp <- cluster_mmm(seqs, k = 2, n_starts = 1, max_iter = 10, seed = 1)
print(attr(grp, "clustering"))


Nestimate documentation built on July 11, 2026, 1:09 a.m.