rarefy_mean: Rarefy mean

View source: R/Rarefy_mean.R

rarefy_meanR Documentation

Rarefy mean

Description

rarefy_mean rarefies a community matrix n times and averages the outcomes.

Usage

rarefy_mean(
  comm,
  sample = min(rowSums(comm)),
  n = 10,
  remove.singlets = TRUE,
  digits = FALSE
)

Arguments

comm

Community matrix

sample

Sample size to rarefy to based on the minimum row sum from the community matrix

n

Number of iterations to run rrarefy

remove.singlets

Boolean to determine whether to remove singletons

digits

Boolean to determine whether to include decimals

Value

matrix


amorris28/amorris documentation built on Nov. 24, 2022, 6:39 a.m.