jwutil (version 1.2.3)

shuffle: 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

Run this code
# NOT RUN {
set.seed(1441)
shuffle(LETTERS)
# }

Run the code above in your browser using DataCamp Workspace