Compact summary of a netobject_group. Header surfaces the source
(a clustering attached by cluster_network or
cluster_mmm, or a plain split by group_col). The
per-group table carries node and edge counts, weight range, and – when
a clustering attribute is present – N and percentage of sequences per
cluster (matching the layout used by print.net_clustering
and print.net_mmm).
Usage
# S3 method for class 'netobject_group'
print(x, digits = 3L, ...)Examples
seqs <- data.frame(V1 = c("A","B","A","B"), V2 = c("B","A","B","A"),
grp = c("X","X","Y","Y"))
nets <- build_network(seqs, method = "relative", group = "grp")
print(nets)
#> Group Networks (2 groups, group_col: grp)
#>
#> Group Nodes Edges Weights
#> X 2 2 [1.000, 1.000]
#> Y 2 2 [1.000, 1.000]
# \donttest{
seqs <- data.frame(
V1 = c("A","B","A","C","B","A"),
V2 = c("B","C","B","A","C","B"),
V3 = c("C","A","C","B","A","C"),
grp = c("X","X","X","Y","Y","Y")
)
nets <- build_network(seqs, method = "relative", group = "grp")
print(nets)
#> Group Networks (2 groups, group_col: grp)
#>
#> Group Nodes Edges Weights
#> X 3 3 [1.000, 1.000]
#> Y 3 3 [1.000, 1.000]
# }