init_taxmap_data: Convert 'data' input for Taxamp

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

init_taxmap_dataR Documentation

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)

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.

Value

A 'data' variable with the right format


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