Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

makePermutedDesign

creates a data.frame with some columns permuted


Description

takes an input data.frame, permutes some variables, and stacks the resulting data.frames.

Usage

makePermutedDesign(data, vars, nperm)

Arguments

data

a data.frame a subset of which must be vars.

vars

a character vector indicating columns in data to permute.

nperm

an integer specifying the number of times to permute the columns indicated by vars.

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)

mmpf

Monte-Carlo Methods for Prediction Functions

v0.0.5
MIT + file LICENSE
Authors
Zachary Jones [aut, cre]
Initial release
2018-10-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.