| coi | R Documentation |
Computes Cohesiveness Index for a Cluster Analysis
coi(mst, groups)
mst |
A minimum spanning tree matrix (binary) |
groups |
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.
Matthew Vavrek
rclust
## sample vector a<-c(0,5,1,1,2,0,0,1,0,0,8,45) chao1(a) ## matrix format a<-matrix(c(0,5,1,1,2,0,0,1,0,0,8,45),4,3) chao1(a) chao2(a) ## presence absence matrix a<-matrix(c(0,1,1,1,1,0,0,1,0,0,1,1),4,3) chao1(a) chao2(a)