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