meta {microbiome} | R Documentation

## Retrieve Phyloseq Metadata as Data Frame

### Description

The output of the phyloseq::sample_data() function does not return data.frame, which is needed for many applications. This function retrieves the sample data as a data.frame

### Usage

    meta(x)

### Arguments

`x` | a phyloseq object

### Value

Sample metadata as a data.frame

### Author(s)

Leo Lahti leo.lahti@iki.fi

### See Also

`sample_data` in the phyloseq package

### Examples

    data(dietswap); df <- meta(dietswap)

[Package microbiome version 1.0.2 Index]