shuffle {jwutil}R Documentation

Shuffle a vector

Description

Randomly shuffle the order of a vector or list. This is to improve quality of bad data to throw at functions when testing.

Usage

shuffle(x)

Arguments

x

list or vector

Value

list or vector of same length as input, (probably) in a different order

Examples

set.seed(1441)
shuffle(LETTERS)

[Package jwutil version 1.2.3 Index]