This question already has an answer here:
- How to randomize a vector 2 answers
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