lossSampling: This function actually calculates the stochastic loss to...

Description Usage Arguments Value Examples

View source: R/sourceSHAPE.R

Description

This function actually calculates the stochastic loss to populations.

Usage

1
lossSampling(func_inPopulation, func_dilutionFactor)

Arguments

func_inPopulation

This is a vector of the number of individuals in the populations within the community.

func_dilutionFactor

This is expected proportion of the current population sizes that should remain.

Value

A vector of the resultant population sizes remaining.

Examples

1
2
# A vector of population sizes is randomly sampled to be around the product of size and factor
replicate(5,lossSampling(c(1e4,2e4,3e4),0.01))

rSHAPE documentation built on July 19, 2019, 5:05 p.m.

Related to lossSampling in rSHAPE...