Skip to contents

Grab metadata from a physeq object and format to tibble

Usage

meta_data_phy(phy)

Arguments

phy

A phyloseq object containig sample_data

Value

A tibble.

Examples

meta_data_phy(physeq)
#> # A tibble: 50 × 5
#>    sample_id depth location date       sample_id.1
#>    <chr>     <int> <chr>    <date>     <chr>      
#>  1 Smp1         30 place_b  2020-02-17 Smp1       
#>  2 Smp2         30 place_b  2020-12-13 Smp2       
#>  3 Smp3         11 place_c  2019-06-27 Smp3       
#>  4 Smp4         27 place_a  2021-02-08 Smp4       
#>  5 Smp5         28 place_c  2021-08-10 Smp5       
#>  6 Smp6         14 place_c  2021-04-10 Smp6       
#>  7 Smp7          5 place_c  2021-09-30 Smp7       
#>  8 Smp8          9 place_c  2021-12-04 Smp8       
#>  9 Smp9         12 place_b  2019-09-15 Smp9       
#> 10 Smp10         1 place_b  2021-07-05 Smp10      
#> # ℹ 40 more rows