Description Usage Arguments Details Value Note Author(s) References Examples
Use permutations and combinations to count outcomes
1 2 3 4 5 |
n |
total n itmes |
r |
select r |
n_vec |
a vector of (n_1, n_2,...,n_r) |
Permutation, Combination, and Permutation of similar items
nPr(n,r) provides the number of different ways to permute r items from a set of n distinct items.
nCr(n,r) provides the number of different ways to select r items from a set of n items where order does not matter.
SimPerm(n_vec) provides the number of different ways to permute n items when they are not totally distinct.
deweiwang@stat.sc.edu
Dewei Wang
Section 2.2 of the textbook "Applied Statistics and Probability for Engineers" 7th edition
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.