Code to accompany paper on levels and dimensions of biodiversity: Read, Q. D., P. L. Zarnetske, S. Record, K. M. Dahlin, J. K. Costanza, A. O. Finley, K. D. Gaddis, J. M. Grady, M. L. Hobi, A. M. Latimer, S. L. Malone, S. V. Ollinger, S. Pau, and A. M. Wilson. 2020. Beyond counts and averages: Relating geodiversity to dimensions of biodiversity. Global Ecology and Biogeography 29:696–710. DOI:10.1111/geb.13061.