taxmap()
Sort columns of tables in obj$data in taxmap() objects. Any variable name that appears in all_names() can be used as if it was a vector on its own. See dplyr::arrange() for the inspiration for this function and more information.
obj$data
all_names()
dplyr::arrange()
obj$arrange_obs(target, ...) arrange_obs(obj, target, ...)
An object of type taxmap().
The name of the table in obj$data to filter.
One or more expressions (e.g. column names) to sort on.
An object of type taxmap()
Other taxmap manipulation functions: arrange_taxa, filter_obs, filter_taxa, mutate_obs, sample_frac_obs, sample_frac_taxa, sample_n_obs, sample_n_taxa, select_obs, transmute_obs
arrange_taxa
filter_obs
filter_taxa
mutate_obs
sample_frac_obs
sample_frac_taxa
sample_n_obs
sample_n_taxa
select_obs
transmute_obs
# NOT RUN { # Sort in ascending order arrange_obs(ex_taxmap, "info", n_legs) arrange_obs(ex_taxmap, "foods", name) # Sort in decending order arrange_obs(ex_taxmap, "info", desc(n_legs)) # }
Run the code above in your browser using DataLab