Skip to contents

This function takes in a CBEA type object and collects all values across all sets and samples that were evaluated.

Usage

# S3 method for CBEAout
tidy(x, ...)

Arguments

x

A CBEAout object.

...

Unused, included for generic consistency only.

Value

A tidy tibble::tibble() summarizing scores per sample per set.

Examples

# load the data
data(hmp_gingival)
mod <- cbea(hmp_gingival$data, hmp_gingival$set, abund_values = "16SrRNA",
    output = "sig", distr = "norm", adj = FALSE, n_perm = 5, parametric = TRUE)
#> Warning: Taxonomic count table contains zeros,
#>             which would invalidate the log-ratio transform.
#>             Adding a pseudocount of 1e-5...
tidy(mod)
#> # A tibble: 369 × 4
#>    sample_ids Aerobic Anaerobic F_Anaerobic
#>    <chr>        <dbl>     <dbl>       <dbl>
#>  1 700014427        1         0           1
#>  2 700014521        0         0           1
#>  3 700014603        1         0           0
#>  4 700014749        1         0           1
#>  5 700014791        0         0           1
#>  6 700014917        1         0           1
#>  7 700014989        0         1           0
#>  8 700015076        1         0           1
#>  9 700015149        0         0           1
#> 10 700015215        0         1           0
#> # … with 359 more rows