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

1
2
3
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.

Note

Although delineating a source pool of species and estimating their relative colonization probabilities is difficult, this is the most realistic approach to constructing a null distribution.

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

1
obsOverlap <- size_source_pool(dataRodents$Sonoran)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.