
Last chance! 50% off unlimited learning
Sale ends in
Calculates the root square of Rao's dissimilarity coefficient between samples.
disc(samples, dis = NULL, structures = NULL)
a data frame with elements as rows, samples as columns, and abundance, presence-absence or frequencies as entries
an object of class dist
containing distances or dissimilarities among elements.
If dis
is NULL, equidistances are used.
a data frame containing, in the jth row and the kth column, the name of the group of level k to which the jth population belongs.
Returns a list of objects of class dist
Rao, C.R. (1982) Diversity and dissimilarity coefficients: a unified approach. Theoretical Population Biology, 21, 24--43.
# NOT RUN {
data(humDNAm)
humDNA.dist <- disc(humDNAm$samples, sqrt(humDNAm$distances), humDNAm$structures)
humDNA.dist
is.euclid(humDNA.dist$samples)
is.euclid(humDNA.dist$regions)
# }
# NOT RUN {
data(ecomor)
dtaxo <- dist.taxo(ecomor$taxo)
ecomor.dist <- disc(ecomor$habitat, dtaxo)
ecomor.dist
is.euclid(ecomor.dist)
# }
Run the code above in your browser using DataLab