taxmap
Subsets obs_data columns in a taxmap object. Takes and returns a taxmap object. Any column name that appears in obs_data(.data) can be used as if it was a vector on its own. See select for more information.
obs_data
obs_data(.data)
select
select_obs(.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.
taxon_data
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_taxa, 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_taxa
transmute_obs
transmute_taxa
# NOT RUN { # subset observation columns select_obs(unite_ex_data_3, other_id, seq_id) # }
Run the code above in your browser using DataCamp Workspace