permutation: permutation

Description Usage Arguments Details Value Note Examples

Description

Permutations are arrangements of objects (with or without repetition), order does matter. A permutation with repetition is an arrangement of objects, where some objects are repeated a prescribed number of times.

Usage

1

Arguments

n

numeric: number of elements to select from

...

numeric: number of repetitions copies

Details

Value

numeric

Note

If k_1+k_2+... < n then it assumed that for the rest the number of copies is always one.

Examples

1
2
3
permutation(10)
permutation(10, 5, 3) # equivalent to permutation(10, 5, 3, 1, 1)
permutation(10, 5, 3, 2) 

sigbertklinke/mmstat documentation built on May 14, 2019, 8:36 a.m.