Select randomly some samples from an index
qcSubset(index, size, each = FALSE)
A list of indices indicating which samples go to which subset.
The number of samples that should be taken.
A logical value if the subset should be taken from all the samples or for each batch.