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