makePermutedDesign {mmpf} | R Documentation |
creates a data.frame
with some columns permuted
Description
takes an input data.frame, permutes some variables, and stacks the resulting data.frame
s.
Usage
makePermutedDesign(data, vars, nperm)
Arguments
data |
a |
vars |
a character vector indicating columns in |
nperm |
an integer specifying the number of times to permute the columns indicated by |
Value
a data.frame
with number of rows equal to nrow(data) * nperm
Examples
data = data.frame(x = 1:3, y = letters[1:3])
makePermutedDesign(data, "x", 3)
[Package mmpf version 0.0.5 Index]