Learn R Programming

metacoder (version 0.3.7)

parse_dataset: 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)

Value

The indexes for the datasets selected

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.