This function assumes that to process the batch the samples are distributes in a plate. Sometimes you know in advance the

spatial(
index,
pheno,
omit = NULL,
remove_positions = NULL,
rows = LETTERS[1:5],
columns = 1:10,
iterations = 500
)

## Arguments

index A list with the samples on each subgroup, as provided from design() or replicates(). Data.frame with the sample information. Name of the columns of the pheno that will be omitted. Character, name of positions. Character, name of the rows to be used. Character, name of the rows to be used. Numeric value of iterations that will be performed.

## Value

The indices of which samples go with which batch.

## Examples

data(survey, package = "MASS")
index <- design(survey[, c("Sex", "Smoke", "Age")], size_subset = 50,
iterations = 25)
index2 <- spatial(index, survey[, c("Sex", "Smoke", "Age")], iterations = 25)
#> $A1 #> [1] 54 163 4 43 188 #> #>$B1
#> $C1 #> [1] 25 55 107 70 148 #> #>$D1
#> $E1 #> [1] 59 225 81 211 52 #> #>$A2
#>