Calculates the average distance between functions for one or an entire assemblage of replicates

dmean(adf_raw, D)

Arguments

adf_raw

A data frame frame with functions in columns and rows as replicates

D

A distance matrix describing dissimilarity between functions.

Value

Single numeric of weighted average of distance matrix

References

Byrnes, J. E. K., Roger, F. and Bagchi, R. 2022. Understandable Multifunctionality Measures Using Hill Numbers. bioRxiv. 2022.03.17.484802. https://doi.org/10.1101/2022.03.17.484802

Chao, A., Chiu, C.-H., Villéger, S., Sun, I.-F., Thorn, S., Lin, Y.-C., Chiang, J.-M. and Sherwin, W. B. 2019. An attribute-diversity approach to functional diversity, functional beta diversity, and related (dis)similarity measures. Ecological Monographs. 89: e01343.