nc_multiset {iterpc} | R Documentation |
Calculate the number of r-combinations of a multiset
Description
Calculate the number of r-combinations of a multiset
Usage
nc_multiset(f, r, bigz = FALSE)
Arguments
f |
the frequencies of the mutliset |
r |
the number of object drawn from the multiset |
bigz |
use gmp's Big Interger |
Value
the number of combinations (Big Integer from gmp)
Examples
x <- c("a","a","b")
# possible combinations of size 2 are "aa" and "ab".
nc_multiset(table(x), 2) # <- 2
[Package iterpc version 0.4.2 Index]