Given the index and the data of the samples append the batch assignment

inspect(i, pheno, omit = NULL, index_name = "batch")

## Arguments

i List of indices of samples per batch Data.frame with the sample information. Name of the columns of the pheno that will be omitted. Column name of the index of the resulting data.frame.

## Value

The data.frame with a new column batch with the name of the batch the sample goes to.

## Examples

data(survey, package = "MASS")
columns <- c("Sex", "Age", "Smoke")
index <- design(pheno = survey[, columns], size_subset = 70,
iterations = 10)
batches <- inspect(index, survey[, columns])
#> 6 Female 21.000 Never SubSet4