mercredi 17 août 2016

Randomly mixing elements in vector R [duplicate]

This question already has an answer here:

Supposing I have the vector

x <- c(1,2,3,4,5,6)

Is there any way I could randomly mix its elements?

Or create a vector which would have integer elements from 1 to 6 which do not repeat?




Aucun commentaire:

Enregistrer un commentaire