Function to randomize body sizes within a uniform distribution
with boundaries set by the largest and smallest species in the assemblage.
Usage
size_uniform(speciesData = runif(20))
Arguments
speciesData
a vector of positive real values representing the body
sizes or trait values for each species.
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.
Details
If the assemblage contains n species,
only the body sizes of the inner n - 2 species are randomized.
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.