size_source_pool: SizeSourcePoolDraw Size Overlap Randomization Algorithm
Description
Function to randomize body sizes by drawing species from a
user-defined source pool. Species are drawn without replacement,
and there is a specified probability vector for the source pool species
Usage
size_source_pool(speciesData = 21:30, sourcePool = runif(n = 2 * length(speciesData), min = 10, max = 50), speciesProbs = rep(1, length(sourcePool)))
Arguments
speciesData
a vector of observed body sizes.
sourcePool
a vector of body sizes of species in the user-defined
pool of potential colonists.
speciesProbs
a vector of relative colonization weights of
length 'sourcePool'.
Value
Returns a vector of body sizes of an assemblage randomly drawn
from a user-defined source pool.
References
Strong, D.R. Jr., L.A. Szyska, and D. Simberloff. 1979. Tests of
community-wide character displacement against null hypotheses. Evolution 33:
897-913.
Schluter, D. and P.R. Grant. 1984. Determinants of morphological patterns in
communities of Darwin's finches. American Naturalist 123: 175-196.
Examples
Run this codeobsOverlap <- size_source_pool(dataRodents$Sonoran)
Run the code above in your browser using DataLab