Skip to contents

Convert a microbiome_diversity result to a tibble for tidy analysis.

Usage

as_tibble_diversity(object)

Arguments

object

A microbiome_diversity object.

Value

A tibble.

Examples

data("global_patterns", package = "microbiomedataset")

x <- calculate_alpha_diversity(global_patterns, metric = "shannon")
y <- as_tibble_diversity(x)
class(y)
#> [1] "tbl_df"     "tbl"        "data.frame"