sample_fs: Draw samples from the feasible set given S and N

Description Usage Arguments Value

View source: R/sad_sampler.R

Description

Draw samples from the feasible set of species abundance distributions with s species and n total individuals

Usage

1
2
sample_fs(s, n, nsamples, storeyn = FALSE, storepath = NULL,
  p_table = NULL)

Arguments

s

the number of species

n

the number of individuals

nsamples

how many samples to draw

storeyn

TRUE/FALSE whether to store the P table.

storepath

path to store the P table.

p_table

optionally pass P table as an argument

Value

matrix nsamples of ranked abundance distributions. Rows are samples and columns are species, sorted from least to most abundant.


diazrenata/feasiblesads documentation built on April 24, 2021, 12:26 a.m.