powered by
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")
The indices of which samples go with which batch.
Data.frame with the sample information.
Numeric value of the number of sample per batch.
Name of the columns of the pheno that will be omitted.
pheno
Numeric value of iterations that will be performed.
A character used to name the subsets, either a single one or a vector the same size as n.
n
The evaluate_* functions and create_subset().
evaluate_*
create_subset()
data(survey, package = "MASS") index <- design(survey[, c("Sex", "Smoke", "Age")], size_subset = 50, iterations = 10) index
Run the code above in your browser using DataLab