spatPerm2D: Permute an array of occurances under a given set of...

View source: R/vario.R

spatPerm2DR Documentation

Permute an array of occurances under a given set of constraints in 2-D space

Description

Permute an array of occurances under a given set of constraints in 2-D space

Usage

spatPerm2D(psp, shiftpos = NULL, rotate = NULL, meth = "shift", sp = FALSE)

Arguments

psp

the sp x row x col array, where rows and columns specify where on the spatial grid the sample was located

shiftpos

two numbers that are the x and y places to shift the grid, this is generated randomly if needed

rotate

a single number 1-4 that indicates how many counterclockwise rotations to perform, generated randomly

meth

the type of permutation to use, options include: 1) reflect: random, 2) reflection/rotations of species (only makes sence when sp are not fixed 3) shift: random torodial shifting with or with sp fixed 4) both: both reflection and shifting 5) random: random shuffle

sp

if FALSE then obs composition of quadrats is fixed to the observed pattern if TRUE then species are each shuffled independently


mcglinnlab/vario documentation built on Feb. 22, 2023, 1:49 p.m.