shuffle_comm: Shuffle a community site x species matrix

View source: R/vario.R

shuffle_commR Documentation

Shuffle a community site x species matrix

Description

Shuffle a community site x species matrix

Usage

shuffle_comm(comm, swap)

Arguments

comm

site x species matrix with abundance or pres/absen data

swap:

two options: 'indiv' or 'quad' for individual or quadrat-based shuffling

Examples

x = matrix(1:100, 10, 10)
shuffle_comm(x, 'quad')
shuffle_comm(x, 'indiv')

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