Skip to contents

Select randomly some samples from an index

Usage

qcSubset(index, size, each = FALSE)

Arguments

index

A list of indices indicating which samples go to which subset.

size

The number of samples that should be taken.

each

A logical value if the subset should be taken from all the samples or for each batch.

Examples

set.seed(50)
index <- create_subset(100, 50, 2)
QC_samples <- qcSubset(index, 10)
QC_samplesBatch <- qcSubset(index, 10, TRUE)