create_subset {experDesign} | R Documentation |
Create index of subsets of a data
Description
Index of the samples grouped by batches.
Usage
create_subset(size_data, size_subset = NULL, n = NULL, name = "SubSet")
Arguments
size_data |
A numeric value of the amount of samples to distribute. |
size_subset |
A numeric value with the amount of samples per batch. |
n |
A numeric value with the number of batches. |
name |
A character used to name the subsets, either a single one or a
vector the same size as |
Value
A random list of indices of the samples.
See Also
batch_names()
, use_index()
if you already
have a factor to be used as index.
Examples
index <- create_subset(100, 50, 2)
[Package experDesign version 0.4.0 Index]