design | R Documentation |
Given some samples it distribute them in several batches, trying to have equal number of samples per batch. It can handle both numeric and categorical data.
design(pheno, size_subset, omit = NULL, iterations = 500, name = "SubSet")
pheno |
Data.frame with the sample information. |
size_subset |
Numeric value of the number of sample per batch. |
omit |
Name of the columns of the |
iterations |
Numeric value of iterations that will be performed. |
name |
A character used to name the subsets, either a single one or a
vector the same size as |
The indices of which samples go with which batch.
The evaluate_*
functions and create_subset()
.
data(survey, package = "MASS")
index <- design(survey[, c("Sex", "Smoke", "Age")], size_subset = 50,
iterations = 10)
index
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.