Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

index_reorder

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)

phyloseq

Handling and analysis of high-throughput microbiome census data

v1.34.0
AGPL-3
Authors
Paul J. McMurdie <joey711@gmail.com>, Susan Holmes <susan@stat.stanford.edu>, with contributions from Gregory Jordan and Scott Chamberlain
Initial release
2019-04-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.