Skip to contents

s3 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).

Usage

as_tibble.netify_comparison(x, ...)

Arguments

x

a netify_comparison object from compare_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.

Author

cassy dorff, shahryar minhas