sim_ENS: Simulate a sample community of a prescribed S_PIE

Description Usage Arguments Value Examples

Description

A wrapper for the mobsim function simsad that internally optimises the CV parameter of the lognormal SAD to generate a community sample of a user specified S_PIE value.

Usage

1
sim_ENS(ENS_target, S, n_sim = NULL, mean_abu = 10, sims = 100)

Arguments

ENS_target

S_PIE value of the sample

S

species richness of the sample

n_sim

number of individuals in the sample. If not specified it will be calculated from the mean_abu parameter.

mean_abu

mean species abundance. Alternative argument to parameterize number of individuals n_sim. Default is 10 individuals per species.

sims

number of simulations used for the internal optimization process. Default is 100. Increasing this parameter can significantly slow down the function

Value

a vector of abundances

Examples

1
2
3
#simulate community of S_PIE=20 with 100 species and 800 individuals
comm<- sim_ENS(20,100, 800)
mobr::calc_PIE(comm, ENS=T)

T-Engel/hammeRs documentation built on May 22, 2019, 2:16 p.m.