Given an index return the name of the batches the samples are in

batch_names(i)

Arguments

i

A list of numeric indices.

Value

A character vector with the names of the batch for each the index.

See also

create_subset(), for the inverse look at use_index().

Examples

index <- create_subset(100, 50, 2) batch <- batch_names(index) head(batch)
#> [1] "SubSet1" "SubSet1" "SubSet2" "SubSet1" "SubSet1" "SubSet1"