generatePermuteString: Generate a permutation string meeting Tukey criteria

View source: R/tukey.R

generatePermuteStringR Documentation

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)

Arguments

nReps

number of permutations to concatenate

n

permutations from 1 to n

Value

a vector of nReps*n integers giving concatenated permutations

Examples

tukeyPermutes()
tukeyPermutes(6,3)

sherrillmix/vipor documentation built on Jan. 26, 2024, 11:01 a.m.