transpose-methods: Transpose 'otu_table-class' or 'phyloseq-class'

tR Documentation

Transpose otu_table-class or phyloseq-class

Description

Extends the base transpose method, t.

Usage

t(x)

## S4 method for signature 'otu_table'
t(x)

## S4 method for signature '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

data(GlobalPatterns)
otu_table(GlobalPatterns)
t( otu_table(GlobalPatterns) )

joey711/phyloseq documentation built on Nov. 4, 2022, 1:16 a.m.