powered by
Index of the samples grouped by batches.
create_subset(size_data, size_subset = NULL, n = NULL, name = "SubSet")
A random list of indices of the samples.
A numeric value of the amount of samples to distribute.
A numeric value with the amount of samples per batch.
A numeric value with the number of batches.
A character used to name the subsets, either a single one or a vector the same size as n.
n
batch_names(), use_index() if you already have a factor to be used as index.
batch_names()
use_index()
index <- create_subset(100, 50, 2)
Run the code above in your browser using DataLab