createMocks {benchdamic} | R Documentation

## createMocks

### Description

Given the number of samples of the dataset from which the mocks should be created, this function produces a `data.frame` object with as many rows as the number of mocks and as many columns as the number of samples. If an odd number of samples is given, the lower even integer will be considered in order to obtain a balanced design for the mocks.

### Usage

    createMocks(nsamples, N = 1000)

### Arguments

`nsamples` | an integer representing the total number of samples.
`N` | number of mock comparison to generate.

### Value

a `data.frame` containing `N` rows and `nsamples` columns (if even). Each cell of the data frame contains the "grp1" or "grp2" characters which represent the mock groups pattern.

### Examples

    # Generate the pattern for 100 mock comparisons for an experiment with 30
    # samples
    mocks <- createMocks(nsamples = 30, N = 100)
    head(mocks)

[Package benchdamic version 1.0.0 Index]