mardi 26 mars 2019

randomize values within multiple columns of a data.frame

I'm trying to randomize the values in multiple columns but keep the row and column orders. Also, I only want to randomize values within each column. I basically want to use the function below on multiple columns of a data frame (not just column A).

sample(myDF$A)




Aucun commentaire:

Enregistrer un commentaire