I have a dataframe like this:
df1 <- data.frame(A=c("xx", "be", "zz", "jj"), B=c("xyx", "bea", "cce", "ggg"), C=c("ges", "xyz", "cce", "edga"))
I want to create a DUAL random framework based on df1. For each of the random frames, I expect column A and column B to remain the same. But only the order of column C can be changed.
Can I do this with R? If so, could you teach me how to do this?
Many thanks.
source
share