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

View source: R/NeighbourcalcUniversal_random.R

NeighbourcalcUniversal_randomR 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 startperm

r

number of rows of startperm

...

arguments for function funname

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


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