Learn R Programming

vipor (version 0.4.7)

tukeyPermutes: Find permutations meeting Tukey criteria

Description

Find all permutations of 1:n fulfilling Tukey's criteria that there are no runs of 3 or more increases or decreases in a row. Tukey just uses the default n=5 and limit=2.

Usage

tukeyPermutes(n = 5, limit = 2)

Value

a list of vectors containing valid permutations

Arguments

n

permutations from 1 to n

limit

the maximum number of increases or decreases in a row

Examples

Run this code
tukeyPermutes()
tukeyPermutes(6,3)

Run the code above in your browser using DataLab