Learn R Programming

EcoSimR (version 0.1.0)

min_ratio: MinRatio Size Overlap Ratio Metric

Description

Function to calculate the minimum size ratio (larger/next larger) between species within an assemblage.

Usage

min_ratio(m = runif(20))

Arguments

m
a vector of non-negative trait measures, one for each species

Value

Returns the minimum size ratio difference between adjacent, ordered values.

Details

This index is based on the minimum size ratio (larger/next larger) difference between consecutively ordered species in an assemblage. It is appropriate for morphological traits, but not phenological ones.

References

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

Examples

Run this code
MinSizeDif <- min_ratio(rgamma(20,shape=3,scale=2))

Run the code above in your browser using DataLab