createContestants: Creating the Initial Pairings

Description Usage Arguments Details Value Examples

View source: R/creatingContestants.R

Description

This function takes an integer to generate a pool of contestants pairings based on the input size.

Usage

1
createContestants(contestants)

Arguments

contestants

The number of pairs to create and must be an integer

Details

Using a sample function this randomizes the assignment of females to males. Technically this is not necessary but it is more fun.

Value

A tibble of with nrow == contestants with names female and male. Both columns are character with male being in numerical order of m\d and female to be randomized.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
createContestants(8)

require(purrr)
map(5:10, createContestants) #creates a list of dataframes
## Not run: 
createContestants("a")
createContestants(0)
createContestants(TRUE) 
createContestants(6.1)

## End(Not run)

NotThatKindODr/Are-You-The-One-Sim documentation built on Dec. 17, 2021, 12:51 p.m.