taxmap
Subsets taxon_data columns in a taxmap object. Takes and returns a taxmap object. Any column name that appears in taxon_data(.data) can be used as if it was a vector on its own. See select for more information.
taxon_data
taxon_data(.data)
select
select_taxa(.data, ...)
One or more column names to return in the new object. This can be one of three things:
expression with unquoted column name
The name of a column in taxon_data typed as if it was a varaible on its own.
numeric
Indexes of columns in taxon_data
To match column names with a character vector, use matches("my_col_name"). To match a logical vector, convert it to a column index using which.
matches("my_col_name")
which
An object of type taxmap
Other dplyr-like functions: arrange_obs, arrange_taxa, filter_obs, filter_taxa, mutate_obs, mutate_taxa, sample_frac_obs, sample_frac_taxa, sample_n_obs, sample_n_taxa, select_obs, transmute_obs, transmute_taxa
arrange_obs
arrange_taxa
filter_obs
filter_taxa
mutate_obs
mutate_taxa
sample_frac_obs
sample_frac_taxa
sample_n_obs
sample_n_taxa
select_obs
transmute_obs
transmute_taxa
# NOT RUN { # subset taxon columns select_taxa(unite_ex_data_3, name) # }
Run the code above in your browser using DataLab