This helper function is produces all possible combinations for a set of numbers. This is an direct copy of the combination() function from package gtools, and is used in function pm_fludity_all().
1 | gtools_comb(n, r, v = 1:n, set = TRUE, repeats.allowed = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.