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

View source: R/NeighbourcalcUniversal.R

NeighbourcalcUniversalR Documentation

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
)

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

Value

list of arrays and corresponding permutations


SOAs documentation built on Aug. 11, 2023, 1:09 a.m.