permute: Function to generate a table of combinations when applying...

Description Usage Arguments Details Value Examples

Description

Function to generate a table of combinations when applying permutation

Usage

1
permute(n, r, v = 1:n)

Arguments

n

numeric for the set size where to apply the permutations

r

numeric for the number of wished combinations for the permutations

v

numeric value used to show the number of combinations in the output. The argument is passed to R's base permute function. We use the default of 1:n, which is the full set is outputted.

Details

we provide a table of the permutation combinations given by the number of r-combinations of an n-set, C(n,r).

Value

data frame with C(n,r) x r combinations.

Examples

1
head(permute(10,2))

digiYozhik/msc_thesis documentation built on May 14, 2019, 5:16 p.m.