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

1 | ```
size_uniform(speciesData = runif(20))
``` |

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

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

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.

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.

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.

`size_gamma`

size distribution function.

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

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.