rrarefy.perm: Rarefaction of a community matrix with permutations

Description Usage Arguments Details Value Author(s) Examples

View source: R/EcolUtils_functions.R

Description

This function generates one randomly rarefied community data frame through n repeated independent rarefactions.

Usage

1
rrarefy.perm(x, sample = min(rowSums(x)), n = 100, round.out = T)

Arguments

x

Community data, a matrix-like object.

sample

Subsample size (min(rowSums(x)) as default)

n

Number of independent rarefactions.

round.out

logical; should output be rounded.

Details

Function rrarefy.perm generates one randomly rarefied community data frame by computing n rarefied communities with rrarefy in vegan and computing the mean. The average value for each cell may (or may not) be rounded by using round.out parameter.

Value

Rarefied community.

Author(s)

Guillem Salazar <guillems@ethz.ch>

Examples

1
2
3
library(vegan)
data(varespec)
rrarefy.perm(varespec*100)

GuillemSalazar/EcolUtils documentation built on Nov. 6, 2019, 10:50 a.m.