powered by
This function actually calculates the stochastic loss to populations.
lossSampling(func_inPopulation, func_dilutionFactor)
This is a vector of the number of individuals in the populations within the community.
This is expected proportion of the current population sizes that should remain.
A vector of the resultant population sizes remaining.
# NOT RUN { # 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)) # }
Run the code above in your browser using DataLab