The easiest way would just be to shuffle the column…
df$col3 <- sample(df$col3)
3
solved How to sample a column based on frequency in R?
The easiest way would just be to shuffle the column…
df$col3 <- sample(df$col3)
3
solved How to sample a column based on frequency in R?