lossSampling {rSHAPE}R Documentation

This function actually calculates the stochastic loss to populations.

Description

This function actually calculates the stochastic loss to populations.

Usage

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

# 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))


[Package rSHAPE version 0.3.2 Index]