index_reorder: Force index order of phyloseq objects

index_reorderR Documentation

Force index order of phyloseq objects

Description

Force index order of phyloseq objects

Usage

index_reorder(ps, index_type)

## S4 method for signature 'phyloseq'
index_reorder(ps, index_type = "both")

Arguments

ps

(Required). A phyloseq-class instance.

index_type

(Optional). A character string specifying the indices to properly order. Supported values are c("both", "taxa", "samples"). Default is "both", meaning samples and taxa indices will be checked/re-ordered.

Examples

## data("GlobalPatterns")
## GP = index_reorder(GlobalPatterns)

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