Learn R Programming

metacoder (version 0.3.7)

init_taxmap_data: Convert `data` input for Taxamp

Description

Make sure `data` is in the right format and complain if it is not. Then, add a `taxon_id` column to data with the same length as the input

Usage

init_taxmap_data(self, data, input_ids, assume_equal = TRUE)

Value

A `data` variable with the right format

Arguments

self

The newly created [taxmap()] object

data

The `data` variable passed to the `Taxmap` constructor

input_ids

The taxon IDs for the inputs that made the taxonomy

assume_equal

If `TRUE`, and a data set length is the same as the `input_ids` length, then assume that `input_ids` applies to the data set as well.