bray_curtis | R Documentation |
Calculate the Bray-Curtis dissimilarity index (or Sorensen-Dice similarity index) between two sites (with site compositions given as vectors).
bray_curtis(site1, site2, sorensen_dice = FALSE)
site1 |
An atomic vector containing a set of observations (the observations at the first site). |
site2 |
An atomic vector containing a set of observations (the observations at the second site). |
sorensen_dice |
If TRUE, the Sørensen-Dice similarity index (one minus Bray-Curtis dissimilarity index) is returned (FALSE by default) |
No dependencies.
A number [0, 1].
area1 <- c('bubble-tip anemone', 'bubble-tip anemone', 'beaded sea anemone',
'sebae anemone', 'magnificent sea anemone')
area2 <- c('bubble-tip anemone', 'bubble-tip anemone', 'bubble-tip anemone',
'corkscrew tentacle sea anemone')
bray_curtis(area1, area2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.