cross_comparison_spec: Generate a cross-comparison specification

View source: R/orca_interface.R

cross_comparison_specR Documentation

Generate a cross-comparison specification

Description

Creates a cross-comparison matrix with pair-wise combinations of elements from the provided list.

Usage

cross_comparison_spec(named_list, how = "many-to-many")

Arguments

named_list

A named list of items for which an exhaustive pair-wise cross-comparison is required.

how

How to generate pair-wise combinations. Either "many-to-many" (default) which generates all possible pair-wise combinations, or "one-to-many" which generates all combinations between the first element in named_list and the rest of the elements only.

Value

A matrix with one row for each possible pair-wise combination of elements from the provided named list. The first and second columns contain the names of the elements in the pair and the third and fourth columns contain the indexes of these elements in the provided list.


alan-turing-institute/network-comparison documentation built on June 7, 2022, 10:41 p.m.