Permutations_With_Repetition {ConcordanceTest} | R Documentation |

## Enumerate the Permutations of the Elements of a Vector When Some of those Elements are Identical

### Description

This function enumerates the possible combinations of `n`

elements where the first element is repeated `n1`

times, the second element is repeated `n2`

times, the third `n3`

times, ...

### Usage

```
Permutations_With_Repetition(Sample_Sizes)
```

### Arguments

`Sample_Sizes` |
Numeric vector ( |

### Value

Returns a matrix where each row contains a permutation.

### Warning

The number of permutations and the computational time increase exponentially with the number of elements and with the number of sets.

### Examples

```
Sample_Sizes <- c(2,2,2)
Permutations_With_Repetition(Sample_Sizes)
```

[Package

*ConcordanceTest*version 1.0.3 Index]