| print.net_clustering | R Documentation |
Compact, fixed-width summary of a sequence-clustering result. The header carries the clustering method and dissimilarity; the per-cluster table carries cluster size (count and percentage) and mean within-cluster distance when available. Optional medoid and covariate lines surface only when those fields are populated.
## S3 method for class 'net_clustering'
print(x, digits = 3L, ...)
x |
A |
digits |
Integer. Decimal places used for floating-point statistics
in the printout. Default |
... |
Unsupported. Supplying unused arguments raises an error. |
The input object, invisibly.
seqs <- data.frame(V1 = c("A","B","C","A","B"), V2 = c("B","C","A","B","A"),
V3 = c("C","A","B","C","B"))
cl <- build_clusters(seqs, k = 2)
print(cl)
set.seed(1)
seqs <- data.frame(
V1 = sample(c("A","B","C"), 20, TRUE),
V2 = sample(c("A","B","C"), 20, TRUE),
V3 = sample(c("A","B","C"), 20, TRUE)
)
cl <- build_clusters(seqs, k = 2)
print(cl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.