Miscellaneous R functions for calculating and decomposing hierarchical diversity metrics, including hierarchical allele richness, hierarchical exponential Shannon entropy (true diversity of order q=1), hierarchical heterozygosity and genetic differentiation (Jaccard dissimilarity, Delta D, Fst and Jost's D). In addition,a new approach to identify population structure based on the homogeneity of multivariate variances of Shannon differentiation is presented. This package allows users to analyse spatial structured genetic data or species data under a unifying framework (Gaggiotti, O. E. et al, 2018, Evol Appl, 11:1176-1193;