index_reorder {phyloseq} | R 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)

[Package phyloseq version 1.28.0 Index]