MakeNonRedundantPairs: Make list of non-redundant (non-reciprocal) pairings

Description Usage Arguments Value

Description

Given list of things, return data.table of non-redundant pairs between things (including self-self).

Usage

1
2
MakeNonRedundantPairs(things, prefix = "thing", suffix = c("i", "j"),
  sep = ".")

Arguments

things

vector of things

prefix

string, prefix of column names (e.g. "thing")

suffix

character length 2, suffix of column names (usually c("i", "j"), e.g.)

sep

separator joining prefix and suffix (e.g. ".")

Value

data.table with thing i in one column and thing j in another


wkc1986/infograf documentation built on May 20, 2019, 11:37 a.m.