Description Usage Arguments Value Examples
Calculate the number of r-permutations of a multiset
1 | np_multiset(f, r, bigz = FALSE)
|
f |
the frequencies of the mutliset |
r |
the number of object drawn from the multiset |
bigz |
use gmp's Big Interger |
the number of r-permutations (Big Integer from gmp)
1 2 3 | x = c("a","a","b")
# possible permutations of size 2 are "aa", "ab" and "ba".
np_multiset(table(x), 2) # = 3
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.