powered by
data.frame
takes an input data.frame, permutes some variables, and stacks the resulting data.frames.
makePermutedDesign(data, vars, nperm)
a data.frame a subset of which must be vars.
vars
a character vector indicating columns in data to permute.
data
an integer specifying the number of times to permute the columns indicated by vars.
a data.frame with number of rows equal to nrow(data) * nperm
nrow(data) * nperm
# NOT RUN { data = data.frame(x = 1:3, y = letters[1:3]) makePermutedDesign(data, "x", 3) # }
Run the code above in your browser using DataLab