powered by
Randomly permute factor levels
fct_shuffle(f)
A factor (or character vector).
f <- factor(c("a", "b", "c")) fct_shuffle(f) fct_shuffle(f)
Run the code above in your browser using DataLab