View source: R/build_network.R
| print.netobject_group | R Documentation |
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).
## S3 method for class 'netobject_group'
print(x, digits = 3L, ...)
x |
A |
digits |
Integer. Decimal places for the weight summary. Default
|
... |
Additional arguments (ignored). |
The input object, invisibly.
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)
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.