indspc {labdsv} | R Documentation |
Calculates the mean similarity of all plots in which a species occurs.
indspc(veg,dis)
veg |
a data frame of taxa, samples as rows, species as columns |
dis |
an object of class ‘dist’ from
dist ,
vegist , or
dsvdis |
a data frame with species name, mean similarity, and number of occurrences
One measure of the habitat specificity of a species is the idegree to which a species only occurs in communities that are similar to each other. This function calculates the mean similarity of all samples in which each species occurs. The mean similarity of species which only occur once is set as 0, rather than NA.
David W. Roberts droberts@montana.edu http://ecology.msu.montana.edu/labdsv
data(bryceveg) # returns a vegetation dataframe dis.bc <- dsvdis(bryceveg,'bray/curtis') # returns a Bray/Curtis dissimilarity matrix indspc(bryceveg,dis.bc)