metacoder (version 0.1.2)

arrange_obs: Sort columns of taxmap objects

Description

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

Usage

arrange_obs(.data, ...)

Arguments

.data
...
One or more column names to sort on.

Value

An object of type taxmap

See Also

Other dplyr-like functions: arrange_taxa, 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
# Sort observations by sequence name alphabetically
arrange_obs(unite_ex_data_3, seq_name)
# Reverse order of sort
arrange_obs(unite_ex_data_3, desc(seq_name))

Run the code above in your browser using DataCamp Workspace