metacoder (version 0.1.3)

arrange_taxa: Sort columns of taxmap objects

Description

Sort columns of taxon_data in taxmap objects. Any column name that appears in taxon_data(.data) can be used as if it was a vector on its own. See arrange for more details.

Usage

arrange_taxa(.data, ...)

Arguments

.data
...

One or more column names to sort on.

Value

An object of type taxmap

See Also

Other dplyr-like functions: arrange_obs, filter_obs, filter_taxa, mutate_obs, mutate_taxa, sample_frac_obs, sample_frac_taxa, sample_n_obs, sample_n_taxa, select_obs, select_taxa, transmute_obs, transmute_taxa

Examples

Run this code
# NOT RUN {
# Sort by taxon name alphabetically
arrange_taxa(unite_ex_data_3, name)
# Reverse order of sort
arrange_taxa(unite_ex_data_3, desc(name))
  
# }

Run the code above in your browser using DataCamp Workspace