randompair | R Documentation |
ramdonly pair players using reservoir sampling method.
randompair(players, k, cores = 1)
players |
vector, indicating a list of players. |
k |
numeric, indicating how many players each player will be paired with. |
cores |
numeric, indicating the number of CUP cores to be used for parallel |
dataframe
JVitter, J. S. (1985). Random sampling with a reservoir. ACM Transactions on Mathematical Software (TOMS), 11(1), 37-57.
players <- c(1, 'a', 'c', 4, 7, 2, 'w', 'y', 3, 0, 8)
pw <- quickPWCR::randompair(players = players, k = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.