Learn R Programming

phyloseq (version 1.16.2)

t: Transpose otu_table-class or phyloseq-class

Description

Extends the base transpose method, t.

Usage

t(x)

## S3 method for class 'otu_table': t(x)

## S3 method for class 'phyloseq': t(x)

Arguments

x
An otu_table or phyloseq-class.

Value

  • The class of the object returned by t matches the class of the argument, x. The otu_table is transposed, and taxa_are_rows value is toggled.

Examples

Run this code
data(GlobalPatterns)
otu_table(GlobalPatterns)
t( otu_table(GlobalPatterns) )

Run the code above in your browser using DataLab