Convert a netify_comparison to a tibble
Source:R/as_tibble_netify_comparison.R
as_tibble.netify_comparison.Rds3 method for tibble::as_tibble() that returns the
$comparisons data frame directly. the raw netify_comparison
object is a list with mixed scalar / nested fields, which
tibble::as_tibble() cannot coerce cleanly. the per-pair
comparison table is almost always what tidyverse users want
downstream (filter / arrange / pivot / join with metadata).
Arguments
- x
a
netify_comparisonobject fromcompare_networks().- ...
currently unused.
Value
a tibble of pairwise comparisons (one row per
(net_i, net_j, metric) triple). if the comparison object
has no $comparisons slot (e.g., a single-network input), an
empty tibble is returned with a one-shot inform.
Details
registered against the tibble::as_tibble generic via .onload,
so tibble is not a hard dependency.