size_uniform: SizeUniform Size Overlap Randomization Algorithm

Description Usage Arguments Details Value Note References See Also Examples

View source: R/algorithms.R

Description

Function to randomize body sizes within a uniform distribution with boundaries set by the largest and smallest species in the assemblage.

Usage

1
size_uniform(speciesData = runif(20))

Arguments

speciesData

a vector of positive real values representing the body sizes or trait values for each species.

Details

If the assemblage contains n species, only the body sizes of the inner n - 2 species are randomized.

Value

Returns a vector of body sizes that have been randomly assigned. The largest and smallest body sizes in the randomized assemblage match those in the empirical data.

Note

Although the distribution of body sizes may not be truly uniform, it may be approximately uniform within the range of observed values, particularly for small assemblages.

References

Simberloff, D. and W. Boecklen. 1981. Santa Rosalia reconsidered: size ratios and competition. Evolution 35: 1206-1228.

Tonkyn, D.W. and B.J. Cole. 1986. The statistical analysis of size ratios. American Naturalist 128: 66-81.

See Also

size_gamma size distribution function.

Examples

1
nullSizes <-size_uniform(speciesData=runif(20))

EcoSimR documentation built on May 2, 2019, 7:26 a.m.