randomPairs: Make random unique pairings from a list

Description Usage Arguments Examples

View source: R/randomPairs.R

Description

randomPairs() Takes a list of elements and pairs each element randomly with another element from the same list to create unique pairs. Elements are not paired with themselves nor are they paired with items that have already been paired.

Usage

1
randomPairs(list = letters, lname = "l", rname = "r")

Arguments

list

Vector of the items to be paired.

lname

Name for the left column of the returned data frame.

rname

Name for the right column of the returned data frame.

Examples

1

smmurphy/convenience documentation built on Aug. 26, 2020, 8:46 p.m.