Learn R Programming

vipor (version 0.4.7)

generatePermuteString: Generate a permutation string meeting Tukey criteria

Description

Find a random string of concatenated 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.

Usage

generatePermuteString(nReps = 20, n = 5)

Value

a vector of nReps*n integers giving concatenated permutations

Arguments

nReps

number of permutations to concatenate

n

permutations from 1 to n

Examples

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

Run the code above in your browser using DataLab