Learn R Programming

doofa (version 1.0)

shuffle: shuffle elements of a randomly chosen row of x matrix

Description

shuffle elements of a randomly chosen row of x matrix

Usage

shuffle(x)

Value

a matrix with shuffled elements of a row

Arguments

x

a matrix

Examples

Run this code
x = matrix(c(3,1,2, 1,2,3,1,3,2,2,1,3),ncol = 3, byrow = TRUE)
shuffle(x);

Run the code above in your browser using DataLab