metacoder (version 0.1.3)

select_obs: Subset columns in a taxmap object

Description

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.

Usage

select_obs(.data, ...)

Arguments

.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.

Value

An object of type taxmap

See Also

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

Examples

Run this code
# 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