Takes a workhorse function and creates random one- or two-neighbors
NeighbourcalcUniversal(
funname,
mperm,
r,
...,
startperm = NULL,
allpermlist = NULL,
neighbordist = 1
)
list of arrays and corresponding permutations
function that creates the individual (O)SOAs
number of columns of startperm
number of rows of startperm
arguments for function funname
matrix with position numbers of level permutations (refers to allpermlist
)
list of all permutations
1 or 2: one- or two-neighbors in Weng's algorithm