Learn R Programming

SOAs (version 1.4)

NeighbourcalcUniversal: Function to do level permutations according to Weng's algorithm

Description

Takes a workhorse function and creates random one- or two-neighbors

Usage

NeighbourcalcUniversal(
  funname,
  mperm,
  r,
  ...,
  startperm = NULL,
  allpermlist = NULL,
  neighbordist = 1
)

Value

list of arrays and corresponding permutations

Arguments

funname

function that creates the individual (O)SOAs

mperm

number of columns of startperm

r

number of rows of startperm

...

arguments for function funname

startperm

matrix with position numbers of level permutations (refers to allpermlist)

allpermlist

list of all permutations

neighbordist

1 or 2: one- or two-neighbors in Weng's algorithm