unique_pairs: Unique Combinations of all Elements within a Vector

Description Usage Arguments Value Examples

Description

Given a vector of elements this function calculates the unique combinations between all element

Usage

1

Arguments

vec

Value

A Dataframe with (n^2-n)/2 observations

Examples

1
2
# unique pairs of 3 companies, a dataframe with (3^2-3)/2 = 3 observations is returned
unique_pairs(c("comp_1", "comp_2", "comp_3"))

M-U-UNI-MA/tpfunctions documentation built on May 24, 2019, 7:37 a.m.