Computes Cohesiveness Index for a Cluster Analysis
A minimum spanning tree matrix (binary)
A vector with the group/cluster assignments for each sample
Returns a something
While the function will still return a value, if all the species abundances are equal to 1 in the input to
chao1, a warning will be raised, and the value returned will be equal to the number of species observed.
1 2 3 4 5 6 7 8 9 10 11 12 13
Loading required package: sp Loading required package: maps Loading required package: shapefiles Loading required package: foreign Attaching package: 'shapefiles' The following objects are masked from 'package:foreign': read.dbf, write.dbf  11.5  4  6  6 Warning message: In chao1(a) : This data appears to be presence/absence based, but this estimator is for abundance data only  6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.