parse_dataset: Parse options specifying datasets

View source: R/old_taxa--taxmap--option_parsers.R

parse_datasetR Documentation

Parse options specifying datasets

Description

Parse options specifying datasets in taxmap objects

Usage

parse_dataset(obj, data, must_be_valid = TRUE, needed = TRUE, rm_na = TRUE)

Arguments

obj

The taxmap object.

data

The name/index of datasets in a taxmap object to use. Can also be a logical vector of length equal to the number of datasets.

must_be_valid

If TRUE, all datasets specified must be valid or an error occurs.

needed

If TRUE, at least one dataset must be specified or an error occurs.

rm_na

If TRUE, then invalid datasets do result in NAs in the output.

Value

The indexes for the datasets selected


metacoder documentation built on April 4, 2023, 9:08 a.m.