Takes a workhorse function and creates random one- or two-neighbors
NeighbourcalcUniversal_random(
funname,
mperm,
r,
...,
curperms = NULL,
replacement = 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
an rxm matrix of lists of current permutation vectors, or NULL
a vector of replacements
1 or 2: one- or two-neighbors in Weng's algorithm