Utilities for array creation
createAB(s, k = 3, m = NULL, old = FALSE)BsFromB(B, s = NULL, r = NULL, permlist = NULL, oneonly = TRUE)
BcolsFromBcolllist(Bcollist)
createAB
returns a list of s^k times m matrices A, B and D for the He, Cheng and Tang (2018) construction
BsFromB
returns an rn x m matrix
BcolsFromBcolllist
returns column numbers selected for matrix B
levels
integer; determines the run size: the resulting array will have s^k runs
the number of columns to be created
n x m matrix
number of copies
permutation list
logical: permute all copies in the same way?
list of candidate columns for He et al. (2018) construction
BcolsFromBcolllist
tries to create adequate unique matches from a list of suitable matches. For example, if four matches are needed and the list list(1:2, 1:3, 4:6, 1)
holds the suitable matches for the four positions, the function would return the vector 2, 3, 4, 1.