Description Usage Arguments Details Value Examples
View source: R/creatingContestants.R
This function takes an integer to generate a pool of contestants pairings based on the input size.
1 | createContestants(contestants)
|
contestants |
The number of pairs to create and must be an integer |
Using a sample function this randomizes the assignment of females to males. Technically this is not necessary but it is more fun.
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.