https://github.com/GenomicsAotearoa/Intermediate-R/blob/e20cfba6b06863e0c2d4a1b709aa9ac0643d320d/docs/3.function_conditions.md?plain=1#L318 Add in results here for reference (eg shannon index is supposed to be NaN)