Reorder Data

DESCRIPTION:

Randomly shuffle the rows of a data set.

This function requires the bigdata library section to be loaded.

USAGE:

bd.shuffle(data, seed=NULL)

REQUIRED ARGUMENTS:

data
a bdFrame or data.frame.

OPTIONAL ARGUMENTS:

seed
if NULL, uses a new random seed for sampling every time. If an integer, it uses this for the seed. The default value will set the seed based on the S-PLUS random seed.

VALUE:

A bdFrame or data.frame, of the same type as data.

SIDE EFFECTS:

The object .Random.seed is created if it does not already exist, otherwise its value is updated.

DETAILS:

This functions makes use of a modified merge sort to randomly shuffle the input.

REFERENCES:

SEE ALSO:

.

EXAMPLES:

# Mix up fuel.frame
bd.shuffle(fuel.frame)