This function implements the plug-in Shannon diversity

sample_shannon(input_data)

Arguments

input_data

An input type that can be processed by convert() or a phyloseq object

Value

An object of class alpha_estimate, or alpha_estimates for phyloseq objects

Examples

sample_shannon(apples)
#> Estimate of shannon from method Plug-in:
#>   Estimate is 5.67
#>  with standard error 0
#>   Confidence interval: (NA, NA)
#>