NeighbourcalcUniversal_random {SOAs} | R Documentation |
Function to do level permutations according to Weng's algorithm without using a stored list of all permutations
Description
Takes a workhorse function and creates random one- or two-neighbors
Usage
NeighbourcalcUniversal_random(
funname,
mperm,
r,
...,
curperms = NULL,
replacement = NULL,
neighbordist = 1
)
Arguments
funname |
function that creates the individual (O)SOAs |
mperm |
number of columns of |
r |
number of rows of |
... |
arguments for function |
curperms |
an rxm matrix of lists of current permutation vectors, or NULL |
replacement |
a vector of replacements |
neighbordist |
1 or 2: one- or two-neighbors in Weng's algorithm |
Value
list of arrays and corresponding permutations
[Package SOAs version 1.4 Index]